Please consider marking an answer as correct
– CVertex
2 Answers
7
votes
Not sure of the exact API, but it's changed to an instance object. All QueryParsers are now instance objects.
var qp = new QueryParser(new StandardAnalyzer(),fields);
qp.Parse(inputString,fields);
1
votes
version 5.0:
QueryParser parser = new QueryParser(fields, new StandardAnalyzer());
Query query = parser.parse(searchString);
This is the newest api!
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more