Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-7483

FTS: Add examples of must, must_not and should

    XMLWordPrintable

Details

    Description

      Add an example for each, must, must_not and should in our FTS documentation and a centralized explanation of them

      similar to: https://stackoverflow.com/questions/28768277/elasticsearch-difference-between-must-and-should-bool-query

      For example:
      {
      "must": { "conjuncts":[

      {"field":"reviews.content", "match": "location"}

      ]},
      "must_not": { "disjuncts": [

      {"field":"free_breakfast", "bool": false}

      ]},
      "should": { "disjuncts": [

      {"field":"free_breakfast", "bool": true}

      ]}
      }

       

       

       

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sarah.welton Sarah Welton
            roi.katz Roi Katz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty