I have document:
{
"_id": 111
"price": 1000
"color": "red"
}
I'm use function_score with gauss function for get score by price.
Now, i need add +30 score if color == "green". Preferably without use groovy script.
But, if color != "green", then still get this document in result, just without these extra 30 points score.
There are ideas in which direction to look?
I've tried this request before, but it returned an incorrect result due to the fact that I used the old version. As soon as I updated from 2 to 6 versions, the problem disappeared
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.