I finally figured this out. The answer is here (see my comment to the
answer):
http://stackoverflow.com/questions/10324969/boosting-fields-in-solr-using-solrj
--
View this message in context:
http://lucene.472066.n3.nabble.com/Boosting-fields-in-SOLR-using-Solrj-tp3939789p3945626.html
Sent from
Thanks Ryan. I created a second requestHandler, which works fine in the
browser.
In solrj, how do I tell the SolrQuery which request handler to use? It
always seems to default to another requestHandler.
--
View this message in context:
http://lucene.472066.n3.nabble.com/Boosting-fields-in-SOLR
add a
second result handler for search, it seems to get overridden by the existing
one.
--
View this message in context:
http://lucene.472066.n3.nabble.com/Boosting-fields-in-SOLR-using-Solrj-tp3939789p3945486.html
Sent from the Solr - User mailing list archive at Nabble.com.
Am 26.04.2012 00:57, schrieb Joe:
Hi,
I'm using the solrj API to query my SOLR 3.6 index. I have multiple text
fields, which I would like to weight differently. From what I've read, I
should be able to do this using the dismax or edismax query types. I've
tried the following:
SolrQuery query =
ot;type","dismax");
>
> I'd like to retain the full Lucene query syntax, so I prefer ExtendedDisMax
> to DisMax. Boosting individual terms in the query (as shown below) does
> work, but is not a valid solution, since the queries are automatically
> generated and ca
tle:apples^10.0 oranges^10.0 content:apples oranges");
Any help would be much appreciated.
--
View this message in context:
http://lucene.472066.n3.nabble.com/Boosting-fields-in-SOLR-using-Solrj-tp3939789p3939789.html
Sent from the Solr - User mailing list archive at Nabble.com.