I have inherited a project which uses Lucene 4.6.0 to search xml documents.
Basically my problem seems to be this:
Searching a document with a text field containing "otherwise authorized as such"
returns highlighted document when searching for any of those words, but if the
text field contains something like "[otherwise authorized as such]"
then only a search for "authorized" returns a result.
I am guessing that lucene is not seeing "[otherwise"
and "such]"
as words because of the square brackets?
Not being a lucene expert, even with documentation, I am stuck on this. Is there a way to customize an Analyzer to include "[" as part of word searches?
Thanks
[otherwise
? – Mysterion