On 4/6/06, Chris Hostetter <[EMAIL PROTECTED]> wrote: > : The easiest way would be to add another parameter specifying the > : default query syntax. > : qformat=lucene // default QueryParser syntax > : qformat=xml // Mark's XML query syntax > : qformat=surround // Paul's surround query syntax > > You mean the the standard request handler? > > Why not add an XmlRequestHandler and an SurroundRequestHandler that each > parse their "q" param using the appropraite parser?
If the only thing one wants to change is the format of the Lucene query itself, and not the complete request (Paul's surround syntax might be a better example), and it's a broadly applicable query format, then why make a whole new handler? But, it would make sense if enough stuff was different (query args, way to specify return fields, return format, etc). For example, I imagine that enough stuff would be different for OpenSearch support that it would make sense to have a different handler. -Yonik