CustomQueryParser not retrieving correct documents?

42 Views Asked by At

I have designed my CustomQueryParser using OpenNLP to transform the query such that it would only contain terms with POS tags 'JJ', 'NNS' and 'NN'.

Example Query = This is why all the hewlett packard and test
Query after CustomerQueryParser = hewlett packard test

But somehow when i query from velocity, the documents retrieved are not adhering to the above rule. Also the default q.op field is not following the 'AND' specified in the solrconfig.xml file.

I am assuming after the CustomQueryParser, the query undergoes through further transformation using the queryAnalyzer.

Could someone please point out where I might be going wrong.

Thanks

0

There are 0 best solutions below