>
> Could you also share the query you are running? do run the cross_field 
> query against the default field or the 'raw'  field?
>

it looks like this:

{

  "function_score": {"functions": [{"script_score": {"script": "1. + 50. * 
> doc['importance'].value"}}],

    "boost_mode": "sum",

    "score_mode": "sum",

    "query": {

      "multi_match": {

        "analyzer": "search",

        "type": "cross_fields",

        "fields": [

          "name.default.raw^18", "name.default^2.5", "name.${lang}.raw^18", 
> "name.${lang}^2.5", "name.alternatives.raw^14", "name.alternatives^1.5",

          "city.default.raw^8", "city.default^2", "city.${lang}.raw^8", 
> "city.${lang}^2",

          "street.default.raw^8", "street.default^2", 
> "street.${lang}.raw^8", "street.${lang}^2",

          "housenumber.raw^6", "housenumber",

          "postcode^5",

          "country.default.raw^3", "country.default", 
> "country.${lang}.raw^3", "country.${lang}", "context.default.raw^3", 
> "context.default", "context.${lang}.raw^3", "context.${lang}"

        ],

        "minimum_should_match": ${should_match},

        "query": "${query}"

      }

    }

  }

}

 

-- 
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/46157fe0-5397-4413-923d-8991ccbbeb02%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to