Boost in query_string


Is possible get that the score in a query_string with fields multiply for field? I have this search:

      "query_string": {
        "fields": ["town","city"], 
        "query": "girondens",
        "analyze_wildcard": true,
        "boost": 2

The max score of the documents is 2 but I want that the score to be 4 if I have the string girondens in the field city and town, is possible do it?

I know that if you separate in 2 query string works, but i want this result in a one query_string


This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.