How can I find an exact expression in all documents in Vespa?
I was trying to find a citation of a specific document using an exact expression but got 0 results. I have several documents with text containing the expression "Document 23/2010".
I tried running the following query:
vespa query 'yql=select title from Documents where text contains "\"Document 23/2010\"" LIMIT 10'
and also tried using grammar: phrase
The above should just work for string fields with
indexIf you add
trace.level=3you will see how any query is parsed and executed against the back.Here we can see that the query uses phrase search.
With
index, chars like " are not searchable; they are removed by the tokenizer.