I dont think its needed but i was curious
instead of generating a query string and searching lucene with it (ex “tag: abc 123 id:(2 or 99 or 123)”) could i build a struct/class and pass it in?
using lucene.net
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Do you mean using directly the query API?
If yes take a look at
BooleanQuery: http://lucene.apache.org/java/2_9_3/api/core/index.htmlIf you look in the
Lucene.Net.Searchnamespace you will find a lot of query classes, and then you use the BooleanQuery class to combine themThen pass the
mainQueryobject to one of theSearcher‘s method that takes a query in parameter.