: then in the CustomQueryParser I iterate over all the arguments adding : each key/value to a Map. I then pass in this to the constructor of a : basically copied ExtendedDismaxQParser (only difference is the added : aliases and the logic to add those to the ExtendedSolrQParser). : : Now, the thing I hate about this is I had to pull pieces into my own : class since some of the methods being called (in QueryUtils for : instance) are not publicly available. : : Also I didn't expose parameters to allow this to be done per query : level, but I'd most certainly take suggestions on how to do this. My : use case doesn't require it but I'd be happy to make the modifications : and try it out.
By all means, if you are interested in contributing what you have to the project, please create a jira issue and attach it. I suspect that the best way forward would be to adapt what you've changed into the ExtendedDisxaxQParser directly, but it would also be useful to see what pain points you had in using QueryUtils to try and make it easier for other people to write their own parsers. https://wiki.apache.org/solr/HowToContribute "A half-baked patch in Jira, with no documentation, no tests and no backwards compatibility is better than no patch at all." -- Yonik's Law of Patches -Hoss