i am very new to lucene.net. i index data for multiple field with lucene.net. this way i did the index data
Document doc = new Document();
doc.Add(new Field("ID", oData.ID.ToString() + "_" + oData.Type, Field.Store.YES, Field.Index.UN_TOKENIZED));
doc.Add(new Field("Title", oData.Title, Field.Store.YES, Field.Index.TOKENIZED));
doc.Add(new Field("Description", oData.Description, Field.Store.YES, Field.Index.TOKENIZED));
doc.Add(new Field("Url", oData.Url, Field.Store.YES, Field.Index.TOKENIZED));
writer.AddDocument(doc);
now when user search then user can input data like Audi BMW ECU
1) fist time i want that each word like [Audi] [BMW] [ECU] should be search against for the fields i index like title,description,url . each word should search against 3 field called title,description,url . so what i need to do. what code i need to write.
2) second time the phrase "Audi BMW ECU" should be search against title,description,url fields.
3) user may useinput wild card when they search like Audi BMW ECU* or Audi BMW ECU? 4) i want to add fuzzy search along with multi word search so if user mis-spellings then also result come.
please guide me how could i club up all the logic & functionality in my code and routine as result i got a result of all kind user input.
if possible discuss this issue in detail.