-
Notifications
You must be signed in to change notification settings - Fork 352
Ability to use custom QueryParsers #25
Comments
good point @dustinschultz . Luke allows for custom analyzers. See: https://github.com/DmitryKey/luke/blob/master/luke.sh Adding support for query parsers sounds a logical feature along with custom analyzers. Will need to poke around the code and see how to do this. |
Hi everyone, Thanks |
hi @Moddus ! Tracing the code, I see that it is the xml parser in lucene. Check the org.apache.lucene.queryparser.xml. Take a look at wiki: https://cwiki.apache.org/confluence/display/solr/Other+Parsers#OtherParsers-XMLQueryParser If you don't pass the command line option you mentioned, the default parser is going to be used: CorePlusExtensionsParser. |
Thanks @DmitryKey for your advice. |
Exciting, thanks @Moddus |
For contributors: Now Luke is a part of Apache Lucene. Please create an issue (if there is not exist) to Lucene Jira if you want to help with this. |
Hi,
Feature Request
There's already the ability to have custom analyzers but it'd be really nice if you could configure a custom QueryParser as well. Custom functionality often requires subclassing QueryParser and not being able to use it in Luke means resorting to not using Luke at all.
In addition, there are several supported versions of subclasses of QueryParser that are bundled with lucene (e.g. AnalyzingQueryParser)
Thanks,
Dustin
The text was updated successfully, but these errors were encountered: