I am doing a free text search on my Lucene index using MultiFieldQueryParser on 2 fields, this works fine. Below is how I am building the search query:
var searchParser = new MultiFieldQueryParser(_currentLuceneVersion, new[] { _titleField, _bodyField }, _standardAnalyzer);
Query searchQuery = searchParser.Parse(searchText);
I have now added a new field, which is a boolean (1 or 0 as string), and I want my original search to do a boolean filter on the original free text search.
I am thinking that this must be done using a BooleanQuery and then doing a combine with the original MultiFieldQueryParser and the new BooleanQuery.
Is that right way to go about doing this?
QueryFilterand give it toSearchmethod