lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mihai Caraman <caraman.mi...@gmail.com>
Subject Quoted search on Analyzed fields
Date Tue, 29 Nov 2011 15:18:21 GMT
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.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message