/browse handler (velocity UI) not initiating CustomQueryParser

200 Views Asked by At

I have defined my CustomQueryParser in my RequestHandler.

Below is the RequestHandler part of the code in solrconfig.xml

<requestHandler name="/browse" class="solr.SearchHandler">
    <lst name="defaults">
      <str name="defType">customparser</str>
      <str name="echoParams">explicit</str>

      <str name="qf">body_txt manu2</str>
      <str name="q.op">AND</str>
      <!-- <str name="mm">100%</str> -->


    </lst>
  </requestHandler>

And below is the queryParser part of the code in solrconfig.xml

<queryParser name="customparser" class="com.mycompany.lucene.search.QueryParserPlugin"/>

I have ensured that the jar file associated to the QueryParserPlugin is loading.

But when I make a query the correct documents are not reflecting.

Is there a way I can print from within my CustomQueryParser jar to the solr.log to know if it is being invoked?

Also how do i get this to work?

Have been struggling with this since quite a few days. Please Help !

Thanks

0

There are 0 best solutions below