Does Lucene QueryParser.parse(string) still work? If it is deprecated, what is the new syntax?
Query query = QueryParser.parse("Ophelia");
Thanks Tatyana
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);
version 5.0:
QueryParser parser = new QueryParser(fields, new StandardAnalyzer());
Query query = parser.parse(searchString);
This is the newest api!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With