I'm trying to use the _boost field to boost certain documents while
indexing (as even native scripting is a bit slow for me ;)). But when
I'm searching with a query_string query the _boost field is not
recognized (documents with a lot higher _boost field come later).
I'm trying to use the _boost field to boost certain documents while
indexing (as even native scripting is a bit slow for me ;)). But when
I'm searching with a query_string query the _boost field is not
recognized (documents with a lot higher _boost field come later).
Yes, by default, the : query is using a cached "constant" score result to improve perf. We can add a flag to it to have it do the fully term scanning, which will take boost into account, but it will be slower.
On Saturday, June 11, 2011 at 12:56 AM, Karussell wrote:
It works, but for queries : it does not. I opened an issue for
this:
I'm trying to use the _boost field to boost certain documents while
indexing (as even native scripting is a bit slow for me ;)). But when
I'm searching with a query_string query the _boost field is not
recognized (documents with a lot higher _boost field come later).
Yes, by default, the : query is using a cached "constant" score result to improve perf. We can add a flag to it to have it do the fully term scanning, which will take boost into account, but it will be slower.
On Saturday, June 11, 2011 at 12:56 AM, Karussell wrote:
It works, but for queries : it does not. I opened an issue for
this:
But maybe the workaround is too easy (in my case) and this issue not
worth to be implemented ...
I'm trying to use the _boost field to boost certain documents while
indexing (as even native scripting is a bit slow for me ;)). But when
I'm searching with a query_string query the _boost field is not
recognized (documents with a lot higher _boost field come later).
Yes, by default, the : query is using a cached "constant" score result to improve perf. We can add a flag to it to have it do the fully term scanning, which will take boost into account, but it will be slower.
On Saturday, June 11, 2011 at 12:56 AM, Karussell wrote:
It works, but for queries : it does not. I opened an issue for
this:
I'm trying to use the _boost field to boost certain documents while
indexing (as even native scripting is a bit slow for me ;)). But when
I'm searching with a query_string query the _boost field is not
recognized (documents with a lot higher _boost field come later).
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.