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 author:"john doe" stopped showing(after rebuilding the
index). Why?

Also, how can, on the same index, luke show me results for author:"john
doe"(using not_analyzed), but when i debug the IndexSearcher which receives
a query parsed with the same standardanalyzer as at indexing time(and seems
to be correct), returns no results?!

Thank you,
Mihai C.

Reply via email to