Skip to content
This repository was archived by the owner on Aug 19, 2020. It is now read-only.
This repository was archived by the owner on Aug 19, 2020. It is now read-only.

Embedded ElasticSearch is not indexing all edge properties #102

@kfoss

Description

@kfoss

After creating indices for edge properties, embedded ElasticSearch does not index all fields. Instead, only some fields are indexed.

Example of ES not storing the "_label" property in an established index:

Titan Edge (multiple properties):

         {
            "weight": {
                "type": "string",
                "value": "0.20000000298023224"
            },
            "_edgeId": {
                "type": "string",
                "value": "4V-g-2a"
            },
            "_id": "4V-g-2a",
            "_type": "edge",
            "_outV": 16,
            "_inV": 4,
            "_label": "created"
        }

ES index for edges ("_label" index exists):

    "edge": {
        "properties": {
            "_edgeId": {
                "type": "string"
            },
            "_label": {
                "type": "string",
                "index": "not_analyzed",
                "omit_norms": true,
                "index_options": "docs"
            },
            "weight": {
                "type": "string",
                "index": "not_analyzed",
                "omit_norms": true,
                "index_options": "docs"
            }
        }
    }

ES search result ("_label" property not stored):

{
      "_index" : "dendrite-dev-8",
      "_type" : "edge",
      "_id" : "4V-g-2a",
      "_score" : 1.0, "_source" : {"weight":"0.20000000298023224","_edgeId":"4V-g-2a"}
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions