Using the CLI tool I can just wrap the search term in double quotes and it works, but I can't find a way to do this through the console.
Example data:
[conradL@momerath search-testing]$ cat test-data.ttl
ex:a0 a owl:Thing;
rdfs:label '''ICGC-ABMB-20130430-014''' .
ex:a1 a owl:Thing;
rdfs:label '''ICGC-ABMB-20120905-060''' .
ex:a2 a owl:Thing;
rdfs:label '''ICGC-ABMB-20120905-104''' .
ex:a3 a owl:Thing;
rdfs:label '''ICGC-ABMB-20120905-001''' .
ex:a4 a owl:Thing;
rdfs:label '''ICGC-DBLG-20100205-22-TR''' .
ex:a5 a owl:Thing;
rdfs:label '''ICGC-ABMB-20131010-018''' .
create search enabled db:
[conradL@momerath search-testing]$ stardog-admin db drop searchtestdb ; stardog-admin db create -n searchtestdb -o "search.enabled=true" -- test-data.ttl
search via CLI for non-exact term:
+-------+------------+----------------------------+------------------------------------------------------------------+
| s | p | o | score |
+-------+------------+----------------------------+------------------------------------------------------------------+
+-------+------------+----------------------------+------------------------------------------------------------------+
Query returned 6 results in 00:00:00.041
as I expect, this returns all the data because at least one of the '-' separated tokens in the search term appears in every rdfs:label.
now wrap the search term in double quotes to perform exact search:
+-------+------------+--------------------------+-----------------------------------------------------------------+
| s | p | o | score |
+-------+------------+--------------------------+-----------------------------------------------------------------+
+-------+------------+--------------------------+-----------------------------------------------------------------+
Query returned 1 results in 00:00:00.040
as I expect because only one rdfs:label matches the exact string "ICGC-ABMB-20131010-018".
Through the console however, supplying "ICGC-ABMB-20131010-018" (with quotes) into the search widget at top right of the page still returns all 6 records. Using the the Advanced Search "this exact phrase" field with no quotes again returns all 6 records, and with quotes does not do anything, i.e. does not appear to perform a search at all. Even more oddly, if I supply the space-separated tokens without quotes: ICGC ABMB 20131010 018 to the "this exact phrase" field then only a single record is returned, but it is not the expected one - it is ICGC-DBLG-20100205-22-TR.
Is there some escaping or other mechanism I can use to make this search work as expected through the UI?