Combine exact Match and wildcard query
I want to limit the access to the data, which can be found within my lucene index. I have two fields which I have filled with parameters for access restriction on the element.
Searching the elements in the index is a standard Lucene search with a StandardAnalyzer as parameter for my queryparser.
But I want to include the exact match on the restriction fields ?!?!
But I can only choose one Analyzer for the Queryparser... for exact matches I will need the KeywordAnalyzer.
!?! Anybody has the same problems or some ideas bout this?
thanks for help
Re: Combine exact Match and wildcard query
I think all what you need to do is to specify that this restriction field is not analyzed.
doc.Add(new Lucene.Net.Documents.Field("author", "me", Field.Store.YES, Field.Index.NOT_ANALYZED, Field.TermVector.WITH_POSITIONS_OFFSETS));