Hard to tell, I'd probably just start simple with one function first and
debug from there.
You can use _score if you want to access the current computed score for
the document based on your query_string query. If you want to override that
score, then you don't need _score
boost_mode='sum' means whatever score comes out of your functions will
be added to the computed score for the document based on your query_string
query.
And I want the last 3 to be independent of the query_string.
Any help are very welcome!
Thanks a ton,
Philippe
On Wednesday, 12 March 2014 06:41:46 UTC-7, Binh Ly wrote:
Hard to tell, I'd probably just start simple with one function first
and debug from there.
You can use _score if you want to access the current computed score for
the document based on your query_string query. If you want to override that
score, then you don't need _score
boost_mode='sum' means whatever score comes out of your functions will
be added to the computed score for the document based on your query_string
query.
And I want the last 3 to be independent of the query_string.
Any help are very welcome!
Thanks a ton,
Philippe
On Wednesday, 12 March 2014 06:41:46 UTC-7, Binh Ly wrote:
Hard to tell, I'd probably just start simple with one function first
and debug from there.
You can use _score if you want to access the current computed score for
the document based on your query_string query. If you want to override that
score, then you don't need _score
boost_mode='sum' means whatever score comes out of your functions will
be added to the computed score for the document based on your query_string
query.
I've had a lot of luck stuffing script scores into the rescore. It helps
if one the scripts is slower then you'd like. You do have to rely on the
query string being "pretty good" at finding the results that you want
though. Since all you want is to multiply you can do it by using a rescore
in score_mode: multiply. Like this:
And I want the last 3 to be independent of the query_string.
Any help are very welcome!
Thanks a ton,
Philippe
On Wednesday, 12 March 2014 06:41:46 UTC-7, Binh Ly wrote:
Hard to tell, I'd probably just start simple with one function first
and debug from there.
You can use _score if you want to access the current computed score
for the document based on your query_string query. If you want to override
that score, then you don't need _score
boost_mode='sum' means whatever score comes out of your functions will
be added to the computed score for the document based on your query_string
query.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.