I am new to Lucene.NET. I am adding fields as
Field.Index.NOT_ANALYZED
in a Lucene document. There is one default field which is added in document as
Field.Index.ANALYZED
I have no difficulty in searching the default field; but when I search on a specific field then Lucene returns 0 document. However if I change,
Field.Index.NOT_ANALYZED
to
Field.Index.ANALYZED
then things work properly. I think there is something to do with Analyzer. Can any body guide me on how to search a Field.Index.NOT_ANALYZED
field?
Here is how I am creating the query parser:
QueryParser parser =
new QueryParser(
Version.LUCENE_30,
"content",
new StandardAnalyzer(Version.LUCENE_30));
NOT_ANALYZE
for most fields? – rae1