lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ayyanar <>
Subject CustomQueryParser
Date Mon, 15 Dec 2008 11:17:08 GMT

I found the following solution in the forum to use BoostingTermQuery in solr:

"I ended up subclassing QueryParser and overriding newTermQuery() to create
a BoostingTermQuery instead of a plain ol' TermQuery.  Seems to work. "

I have some questions on this:

1) Anyone tried this? Is it working
2) Where to specify the query parser subclass name? SolrConfig.xml? What is
the xml tag name for this?
3) Should we use Qparser? I think we can directly subclass the QueryParser
and do that. Am I right?
4) Kindly post the code sample to override the newTermQuery() to create a

Thanks in advance

View this message in context:
Sent from the Solr - User mailing list archive at

View raw message