I was going through the documentation of ES where they have mentioned that
we can use boost for a certain field.
Boosting
Use the boost operator ^ to make one term more relevant than another. For
instance, if we want to find all documents about foxes, but we are
especially interested in quick foxes:
quick^2 fox
The default boost value is 1, but can be any positive floating point
number. Boosts between 0 and 1 reduce relevance.
Boosts can also be applied to phrases or to groups:
"john smith"^2 (foo bar)^4
My doubt is what is the meaning of ^2 means is it like multiplying by a factor of 2 or multiplying the whole document score by 2 ?
The boost a term query boost and thus only applies to boost that term and
not the whole document. You can take a look at the boost_factor at the
custom function score query, if this is not the desired behaviour
I was going through the documentation of ES where they have mentioned that
we can use boost for a certain field.
Boosting
Use the boost operator ^ to make one term more relevant than another.
For instance, if we want to find all documents about foxes, but we are
especially interested in quick foxes:
quick^2 fox
The default boost value is 1, but can be any positive floating point
number. Boosts between 0 and 1 reduce relevance.
Boosts can also be applied to phrases or to groups:
"john smith"^2 (foo bar)^4
My doubt is what is the meaning of ^2 means is it like multiplying by a factor of 2 or multiplying the whole document score by 2 ?
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.