Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 3.18 KB | None | 0 0
  1. GET rigla_catalogsearch_fulltext/_search
  2. {
  3.   "sort": [
  4.     {
  5.       "product_qty_raw.default": {
  6.         "order": "DESC",
  7.         "nested": {
  8.           "path": "product_qty_raw"
  9.         }
  10.       }
  11.     },
  12.     {
  13.       "_score": "DESC"
  14.     },
  15.     {
  16.       "name_raw.sort": "ASC"
  17.     }
  18.   ],
  19.   "size": 20,
  20.   "query": {
  21.     "bool": {
  22.       "minimum_should_match": 1,
  23.       "should": [
  24.         {
  25.           "query_string": {
  26.             "fields": [
  27.               "name_raw.search^5"
  28.             ],
  29.             "query": "(((*головокружение* OR головокружение*^2)))"
  30.           }
  31.         },
  32.         {
  33.           "query_string": {
  34.             "fields": [
  35.               "r_simptomy.search^4"
  36.             ],
  37.             "query": "(((*головокружение* OR головокружение*^2)))"
  38.           }
  39.         },
  40.         {
  41.           "query_string": {
  42.             "fields": [
  43.               "manufacturer_id.search^5"
  44.             ],
  45.             "query": "(((*головокружение* OR головокружение*^2)))"
  46.           }
  47.         },
  48.         {
  49.           "query_string": {
  50.             "fields": [
  51.               "mnn_id.search^2"
  52.             ],
  53.             "query": "(((*головокружение* OR головокружение*^2)))"
  54.           }
  55.         },
  56.         {
  57.           "query_string": {
  58.             "fields": [
  59.               "sku_raw.search^10"
  60.             ],
  61.             "query": "(((*головокружение* OR головокружение*^2)))"
  62.           }
  63.         }
  64.       ],
  65.       "must": [
  66.         {
  67.           "terms": {
  68.             "visibility_raw": [
  69.               3,
  70.               4
  71.             ]
  72.           }
  73.         }
  74.       ]
  75.     }
  76.   },
  77.   "highlight": {
  78.     "fields": {
  79.       "name_raw.search": {
  80.         "type": "plain",
  81.         "pre_tags": "",
  82.         "post_tags": "",
  83.         "fragment_size": 1
  84.       },
  85.       "r_simptomy.search": {
  86.         "type": "plain",
  87.         "pre_tags": "",
  88.         "post_tags": "",
  89.         "fragment_size": 1
  90.       },
  91.       "manufacturer_id.search": {
  92.         "type": "plain",
  93.         "pre_tags": "",
  94.         "post_tags": "",
  95.         "fragment_size": 1
  96.       },
  97.       "mnn_id.search": {
  98.         "type": "plain",
  99.         "pre_tags": "",
  100.         "post_tags": "",
  101.         "fragment_size": 1
  102.       },
  103.       "sku_raw.search": {
  104.         "type": "plain",
  105.         "pre_tags": "",
  106.         "post_tags": "",
  107.         "fragment_size": 1
  108.       }
  109.     }
  110.   },
  111.   "_source": [
  112.     "id",
  113.     "product_url",
  114.     "brands_url",
  115.     "manufactures_url",
  116.     "lekforms_url",
  117.     "ingridients_url",
  118.     "brandlines_url",
  119.     "id_raw",
  120.     "sku_raw",
  121.     "name_raw",
  122.     "url_key_raw",
  123.     "promo_label_raw",
  124.     "thumbnail_raw",
  125.     "price_raw.default",
  126.     "manufacturer_id",
  127.     "manufacturer_id_raw",
  128.     "is_in_stock_raw.default",
  129.     "manufactures_url_raw",
  130.     "brands_url_raw",
  131.     "manufactures_url_raw",
  132.     "highlight_raw",
  133.     "rec_need_raw",
  134.     "category_ids_raw",
  135.     "attribute_set_id_raw",
  136.     "url_key_raw",
  137.     "type_id_raw",
  138.     "sku_raw",
  139.     "special_price_raw",
  140.     "special_price_from_raw",
  141.     "special_price_to_raw"
  142.   ]
  143. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement