Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DELETE rigla_catalogsearch_fulltext_tmp
- GET rigla_catalogsearch_fulltext/_search
- {
- "sort": [
- {
- "name_raw.sort": "ASC"
- }
- ],
- "size": 200,
- "query": {
- "match": {
- "name_raw": "Z"
- }
- },
- "_source": [
- "name_raw"
- ]
- }
- GET rigla_catalogsearch_fulltext_tmp/_search
- { "query": {
- "prefix" : { "name.not_analyzed" : "А" }
- }
- }
- GET rigla_catalogsearch_fulltext/_search
- {
- "sort": [
- {
- "product_qty_raw.default": {
- "order": "DESC",
- "nested": {
- "path": "product_qty_raw"
- }
- }
- },
- {
- "_score": "DESC"
- },
- {
- "name_raw.sort": "ASC"
- }
- ],
- "size": 20,
- "query": {
- "bool": {
- "minimum_should_match": 1,
- "should": [
- {
- "query_string": {
- "fields": [
- "name_raw.search^5"
- ],
- "query": "(((*головокружение* OR головокружение*^2)))"
- }
- },
- {
- "query_string": {
- "fields": [
- "r_simptomy.search^4"
- ],
- "query": "(((*головокружение* OR головокружение*^2)))"
- }
- },
- {
- "query_string": {
- "fields": [
- "manufacturer_id.search^5"
- ],
- "query": "(((*головокружение* OR головокружение*^2)))"
- }
- },
- {
- "query_string": {
- "fields": [
- "mnn_id.search^2"
- ],
- "query": "(((*головокружение* OR головокружение*^2)))"
- }
- },
- {
- "query_string": {
- "fields": [
- "sku_raw.search^10"
- ],
- "query": "(((*головокружение* OR головокружение*^2)))"
- }
- }
- ],
- "must": [
- {
- "terms": {
- "visibility_raw": [
- 3,
- 4
- ]
- }
- }
- ]
- }
- },
- "highlight": {
- "fields": {
- "name_raw.search": {
- "type": "plain",
- "pre_tags": "",
- "post_tags": "",
- "fragment_size": 1
- },
- "r_simptomy.search": {
- "type": "plain",
- "pre_tags": "",
- "post_tags": "",
- "fragment_size": 1
- },
- "manufacturer_id.search": {
- "type": "plain",
- "pre_tags": "",
- "post_tags": "",
- "fragment_size": 1
- },
- "mnn_id.search": {
- "type": "plain",
- "pre_tags": "",
- "post_tags": "",
- "fragment_size": 1
- },
- "sku_raw.search": {
- "type": "plain",
- "pre_tags": "",
- "post_tags": "",
- "fragment_size": 1
- }
- }
- },
- "_source": [
- "id",
- "product_url",
- "brands_url",
- "manufactures_url",
- "lekforms_url",
- "ingridients_url",
- "brandlines_url",
- "id_raw",
- "sku_raw",
- "name_raw",
- "url_key_raw",
- "promo_label_raw",
- "thumbnail_raw",
- "price_raw.default",
- "manufacturer_id",
- "manufacturer_id_raw",
- "is_in_stock_raw.default",
- "manufactures_url_raw",
- "brands_url_raw",
- "manufactures_url_raw",
- "highlight_raw",
- "rec_need_raw",
- "category_ids_raw",
- "attribute_set_id_raw",
- "url_key_raw",
- "type_id_raw",
- "sku_raw",
- "special_price_raw",
- "special_price_from_raw",
- "special_price_to_raw"
- ]
- }
- GET rigla_attribute_full_model/_search
- {
- "query": {
- "term": {
- "is_searchable": {
- "value": "1"
- }
- }
- }
- , "_source": "attribute_code"
- }
- DELETE rigla_catalogsearch_fulltext_tmp
- DELETE .kibana_1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement