0
votes

I have developed a customization to Lucene QueryParser by changing the QueryParser.jj grammar. One way to deploy this onto Solr is to revamp the Solr war file by compiling new lucene core.

On the other hand, a new query parser on Solr level can be deployed as a binary dependency (jar) into Solr core's lib directory, which is very convenient.

Is there a similar way to deploy my customization? Could I deploy my lucene-core binary dependency into core's lib directory or somewhere else but the Solr war file?

UPD: The comments to the answer contain the thought process behind my implementation.

UPD2: I have written a blog post on my findings: http://dmitrykan.blogspot.fi/2014/03/implementing-own-luceneqparserplugin.html

1

1 Answers

2
votes

As I understand you can write your own parser (with a new name), place this jar into the lib folder and add the corresponding <queryParser> to solrconfig.xml. See an example of a query parser, implemented by John Berryman @JnBrymn.