I created an index with different bits of data for each document to be added, each document may differ in it by field name.
Later, when I come to search for the index, I need to query it with exact fields / values โโ- for example:
FieldName1 = X AND FieldName2 = Y AND FieldName3 = Z
What is the best way to create the following using Lucene.NET:
- Which analyzer is best used for this type of exact match?
- After getting the match, I need only one specific field that needs to be returned (which I add to each document) - should it be the only one that has been saved?
- Later I will need to support keyword searches (so the field can have a list of values, and I need to do a partial match).
Fields and values โโare taken from Dictionary<string, string> . This is not user input, it is built from code.
Thanks,
Kiron
Kieron
source share