Blame view

docs/常用查询 - ES.md 663 Bytes
8cff1628   tangwang   tenant2 1w测试数据 mo...
1
2
3
4
5
6
7
8
9
  GET /search_products/_search
  {
    "query": {
      "term": {
        "tenant_id": "2"
      }
    }
  }
  
577ec972   tangwang   返回给前端的字段、格式适配。主要包...
10
11
12
13
14
15
16
17
18
19
  
  curl -u 'essa:4hOaLaf41y2VuI8y'   -X GET 'http://localhost:9200/search_products/_search?pretty'   -H 'Content-Type: application/json'   -d '{
      "size": 5,
      "query": {
        "bool": {
          "filter": [
            { "term": { "tenant_id": "162" } }
          ]
        }
      }
c4263d93   tangwang   支持 sku_filter_dim...
20
21
22
23
24
25
26
27
28
29
30
31
32
33
    }'
  
  
  
  curl -u 'essa:4hOaLaf41y2VuI8y'   -X GET 'http://localhost:9200/search_products/_search?pretty'   -H 'Content-Type: application/json'   -d '{
      "size": 5,
      "query": {
        "bool": {
          "filter": [
            { "term": { "spu_id": "74123" } }
          ]
        }
      }
    }'