Is there an error in this Elastic blog post on common terms?

(Davide Fiocco) #1


I was reading the post at

In the blog, there's this sentence

The “low frequency” list is rewritten into a Boolean Should clause (logical OR). In this example, it would contain “bonsai”, “cool”

Is the clause in question not a Should but a Must clause (i.e. there's a typo in the post)? That would match with the code reported later in the post:

  "bool": {
    "must": [
      { "term": { "body": "bonsai"}},
      { "term": { "body": "cool"}}
    "should": [
      { "term": { "body": "this"}}
      { "term": { "body": "is"}}

If that's indeed a small mistake I am happy to report it - but I don't know how to.

(David Pilato) #2

Pinging @polyfractal as he wrote the original post. :slight_smile:

(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.