Suche:

Zurücksetzen Zurücksetzen

{ "query":{ "filtered":{ "query":{ "bool":{ "must":[ { "bool":{ "must":[ { "bool":{ "should":[ { "multi_match":{ "query":{q}, "type":"best_fields", "minimum_should_match":"100%", "analyzer": "analyzer_{lang}", "fields":[ "search_{lang}.whitespace", "name_{lang}.whitespace^10", "description_{lang}.whitespace^9", "meta_description_{lang}.whitespace^6", "category_name_{lang}.whitespace^8", "search_{lang}.shingle" ], "fuzziness":1, "prefix_length":"1", "max_expansions":"10", "cutoff_frequency":0.15 } }, { "multi_match":{ "query":{q}, "type":"best_fields", "minimum_should_match":"100%", "analyzer":"phonetic_{lang}", "fields":[ "search_{lang}.phonetic", "name_{lang}.phonetic^10", "description_{lang}.phonetic^9", "meta_description_{lang}.phonetic^6", "category_name_{lang}.phonetic^8" ], "fuzziness":1, "prefix_length":"1", "max_expansions":"2", "cutoff_frequency":0.15 } } ] } } ] } } ] } }, "filter":{ "bool":{ "must":[ { "terms":{ "visibility":[ 3, 4 ] } }, { "terms":{ "status":[ 1 ] } }, { "fquery":{ "query":{ "query_string":{ "query":"(categories:2 OR show_in_categories:2)" } }, "_cache":true } }, { "terms":{ "store_id":[ {store_id} ] } } ], "_cache":true } } } }, "fields":[ "name_{lang}", "thumbnail_{lang}", "url_{lang}", "price", "price_{customer_group_id}_{website_id}", "has_discount_{customer_group_id}_{website_id}" ], "track_scores":true, "sort":[ { "_score":{ "order":"desc", "missing":9223372036854775806, "ignore_unmapped":true } } ], "from":0, "size":5 }

{ "query":{ "filtered":{ "query":{ "bool":{ "must":[ { "bool":{ "must":[ { "bool":{ "should":[ { "multi_match":{ "query":{q}, "type":"best_fields", "minimum_should_match":"100%", "analyzer":"analyzer_{lang}", "fields":[ "search_{lang}.whitespace", "title_{lang}.whitespace^10", "description_{lang}.whitespace^9", "ingredients_{lang}.whitespace^6", "search_{lang}.shingle" ], "fuzziness":1, "prefix_length":"1", "max_expansions":"10", "cutoff_frequency":0.15 } }, { "multi_match":{ "query":{q}, "type":"best_fields", "minimum_should_match":"100%", "analyzer":"phonetic_{lang}", "fields":[ "search_{lang}.phonetic", "title_{lang}.phonetic^10", "description_{lang}.phonetic^9", "ingredients_{lang}.phonetic^6" ], "fuzziness":1, "prefix_length":"1", "max_expansions":"2", "cutoff_frequency":0.15 } } ] } } ] } } ] } }, "filter":{ "bool":{ "must":[ { "terms":{ "store_id":[ {store_id} ] } } ], "_cache":true } } } }, "aggs":{ "attribute_set_id":{ "terms":{ "size":9, "field":"attribute_set_id" } } }, "from":0, "size":5 }