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

Embedded ElasticSearch is not indexing all edge properties #102

Open
kfoss opened this issue Feb 12, 2014 · 0 comments
Open

Embedded ElasticSearch is not indexing all edge properties #102

kfoss opened this issue Feb 12, 2014 · 0 comments

Comments

@kfoss
Copy link
Contributor

kfoss commented Feb 12, 2014

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"}
    }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant