Hello,

>From the docs it's not clear if and how I can have multiple 
field_value_factors inside a function_score. I would like to boost by 
ratingCount and by averageRating. I was expecting something like this:

    "query": {
        "function_score": {
            "query" : {
                [..truncated...]
            },
            "field_value_factor": {
                "field": "ratingCount",
                "modifier": "log1p"
            },
            "field_value_factor": {
                "field": "avgRating",
                "modifier": "log1p"
            }
        }
    }

What's the correct syntax for this, or what are (better) alternatives?

/AS

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/7767780b-b84b-4e53-a0ba-326fc95ae980%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to