Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-31607

Secondary indexing on meta().flags and meta().type does not work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • 6.5.0
    • 6.0.0, 6.5.0
    • query
    • None
    • 6.5.0-1405
    • Untriaged
    • Unknown

    Description

      When I try to create an index on .flags or .type i get the following error

      RUN QUERY CREATE INDEX idx4 on default(meta().type)

      u'errors': [{u'msg': u'Expression not indexable: (meta().`type`) - at )'

      However this documentation 

      https://docs.couchbase.com/server/5.5/n1ql/n1ql-language-reference/indexing-meta-info.html

      Seems to imply these fields should be indexable, is this expected behavior and the documentation is wrong, or is this incorrect behavior. I have 10 binary documents in my bucket created by cbworkload gen

      Please close out if this is expected behavior

      Attachments

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

        Activity

          People

            keshav Keshav Murthy
            ajay.bhullar Ajay Bhullar
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty