Again there is nothing wrong with the quotes: its instead how you are
configuring the analysis for this field.
If you put stuff in quotes and your analyzer breaks it into multiple
tokens, then queryparser forms a phrase query. You must index
positions to support phrase queries.
Normally DOCS_ONLY
Still no difference, it may be because of some other hidden
bug.Anyway, adding freq and
positions will be a no - no because of space :) so
bye bye quotes.
Thank you
if you use standardanalyzer it will break "john doe" into 2 tokens and
form a phrase query.
if you want to do phrase queries, don't set the indexoptions to
DOCS_ONLY. otherwise they won't work.
if what you want is for "john doe" to only be 1 term without
positions, then use KeywordAnalyzer, and DO
field = new Field("author",(author).toLowerCase(),Field.Store.NO,
Field.Index.NOT_ANALYZED);
field.setIndexOptions(FieldInfo.IndexOptions.DOCS_ONLY);
field.setOmitNorms(true);
When in the above configuration i switched from NOT_ANALYZED to ANALYZED,
luke's results for autho