[ https://issues.apache.org/jira/browse/SOLR-334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12627081#action_12627081 ]
David Smiley commented on SOLR-334: ----------------------------------- I intend on submitting a patch very soon which I think is related to this. There are two parts to it, 1. Enhancing the DisjunctionMaxQueryParser to work on all the query variants such as wildcard, prefix, and fuzzy queries. This was not in Solr already because DisMax was only used for a very limited syntax that didn't use those features. In my opinion, this makes a more suitable base parser for general use because unlike the Lucene/Solr parser, this one supports multiple default fields whereas other ones (say your <!prefix> one for example, can't do dismax). The notion of a single default field is antiquated and a technical under-the-hood detail of Lucene that I think Solr should shield the user from by on-the-fly using a DisMax when multiple fields are used. 2. Enhancing the DisMax QParser plugin to use a pluggable query string re-writer (via subclass extension) instead of the logic currently embedded within it (i.e. the escape nearly everything logic). Additionally, made this QParser have a notion of a "simple" syntax (the default) or non-simple in which case some of the logic in this QParser doesn't occur because it's irrelevant (phrase boosting and min-should-max in particular). As part of my work I significantly moved the code around to make it clearer and more extensible. Should I submit a new issue for this or add to this one? > pluggable query parsers > ----------------------- > > Key: SOLR-334 > URL: https://issues.apache.org/jira/browse/SOLR-334 > Project: Solr > Issue Type: New Feature > Reporter: Yonik Seeley > Attachments: angle2curly.patch, qparser.patch, qparser.patch, > qparser.patch > > > One should be able to optionally specify an alternate query syntax on a > per-query basis > http://www.nabble.com/Using-HTTP-Post-for-Queries-tf3039973.html#a8483387 > Many benefits, including avoiding the need to do query parser escaping for > simple term or prefix queries. > Possible Examples: > fq=<!term field="myfield">The Term > fq=<!prefix field="myfield">The Prefix > q=<!qp op="AND">a b > q=<!xml><?xml...> // lucene XML query syntax? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.