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

Add note to INFER documenting the inclusion of "~meta" attribute.

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • Morpheus
    • Morpheus
    • query
    • None
    • 0

    Description

      To https://docs.couchbase.com/server/current/n1ql/n1ql-language-reference/infer.html add a note similar to:

      NOTE:  (8.0+)

      By default the attribute "~meta" is included in the output with a single embedded property "id" describing the keys associated with the schema.  When using the flags option, control the INFER analysis, the flag include_key must be explicitly specified for this attribute to be included.

      e.g.

       

      INFER `travel-sample`.inventory.airline;
      ...
                      "~meta": {
                          "#docs": 187,
                          "%docs": 100,
                          "properties": {
                              "id": {
                                  "#docs": 187,
                                  "%docs": 100,
                                  "samples": [
                                      "airline_18178",
                                      "airline_19774",
                                      "airline_281",
                                      "airline_3568",
                                      "airline_5160"
                                  ],
                                  "type": "string"
                              }
                          },
                          "samples": [
                              {
                                  "id": "airline_18178"
                              },
                              {
                                  "id": "airline_19774"
                              },
                              {
                                  "id": "airline_281"
                              },
                              {
                                  "id": "airline_3568"
                              },
                              {
                                  "id": "airline_5160"
                              }
                          ],
                          "type": "object"
                      }
      ...
      

       

      Attachments

        Issue Links

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

          Activity

            People

              simon.dew Simon Dew
              Donald.haggart Donald Haggart
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty