Skip to content

"must_not" doesn't work? #4185

Nov 6, 2020 · 1 comments · 7 replies
Discussion options

You must be logged in to vote

You can refer to this:

{
  "bool": {
    "must": [
      {
        "must": [
          {
            "vector": {
              "embedding": {
                "metric_type": "L2", 
                "query": [
                  [
                    -0.0882435888051987, ... 0.0524853430688381
                  ]
                ], 
                "topk": 100
              }
            }
          }
        ]
      }, 
      {
        "must_not": [
          {
            "term": {
              "customer_id": [
                -2020600124
              ]
            }
          }
        ]
      }
    ]
  }
}

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@fishpenguin
Comment options

@wkt
Comment options

@sahuang
Comment options

@wkt
Comment options

@sahuang
Comment options

Answer selected by sahuang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants