Uploaded image for project: 'Couchbase Elasticsearch Connector'
  1. Couchbase Elasticsearch Connector
  2. CBES-146

Support deriving ES index from document contents

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • .future
    • None
    • None

    Description

      Community member Parkash Bansak writes:

       

      For an instance I have a following record:

      {
      “field1”: “foo”,
      “field2”: “bar”
      }
      

      I want to creating a ES type mapping where I want to filter the records based on values of field1 and field2. Something like this,

      if (field1=foo && field2=bar) ==> send the record to ES index equal to “index_1”
      

      Or Alternatively
      Can we create a ES type mapping where I just create a regex for dynamically calculating the index name based on the combination of field1 & field2. So the above record should go to index equal to “index_foo_bar” ?

      Just to clarify I want to avoid creating document id based on the combination of these fields.

      Attachments

        Issue Links

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

          Activity

            People

              david.nault David Nault
              david.nault David Nault
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty