Uploaded image for project: 'Couchbase Java Client'
  1. Couchbase Java Client
  2. JCBC-1721

Cannot create partial secondary index via the SDK

    XMLWordPrintable

Details

    • Task
    • Resolution: Not a Bug
    • Critical
    • None
    • 3.0.8
    • None
    • None
    • 1

    Description

      The Java SDK does not allow the creation of partial indexes:

       

      cluster.queryIndexes().createIndex(bucket.name(), "nameIndex", Arrays.asList("name"),
            CreateQueryIndexOptions.createQueryIndexOptions()
      .ignoreIfExists(true));
      

      There are no methods on the API which will allow me to add a "where" clause for a secondary index.

      Tha fallback right now is to use cluster.query

       

      Attachments

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

        Activity

          People

            david.nault David Nault
            denis.rosa Denis Rosa
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty