On Feb 4, 2008 11:53 AM, Yonik Seeley <[EMAIL PROTECTED]> wrote: > You could, but that would be the hard way (by a big margin). > There are pluggable query parsers now (see QParserPlugin)... but the > current missing piece is being able to specify a new parser plugin > from solrconfig.xml
Hmmm, it appears I forgot what I implemented already ;-) Support for adding new parser plugins from solrconfig.xml already exists (and I just added a test). So add something like the following to your solrconfig.xml <queryParser name="foo" class="FooQParserPlugin"/> And then implement FooQParserPlugin in Java to create your desired query structures (span queries or whatever). See other implementations of FooQParserPlugin in Solr for guidance. To use your "foo" parser, set it to the default query type by adding defType="foo" to the request (or to the defaults for your handler). You can also override the current query type via q=<!foo>my query -Yonik