> In order for Solr to use this parser, > you'll need to wrap it with a QParser and QParserPlugin > implementations, then wire your implementation into > solrconfig.xml.
SurroundQParserPlugin.java (api-4_0_0-BETA) can be an example of such implementation. http://lucene.apache.org/solr/api-4_0_0-BETA/org/apache/solr/search/SurroundQParserPlugin.html