kakao / s2graph

This code base is retained for historical interest only, please visit Apache Incubator Repo for latest one
https://github.com/apache/incubator-s2graph
Other
250 stars 32 forks source link

Add a parameter to specify index direction #41

Closed daewon closed 9 years ago

daewon commented 9 years ago

example)

{
...
 "indexProps": [
            {
                "indexName": "pk",
                "indexDirection": "both",
                "indexProps": [
                    {"name": "user_type", "defaultValue": "-", "dataType": "string" },
                    {"name": "action_type", "defaultValue": "v", "dataType": "string" },
                    {"name": "doc_type", "defaultValue": "-", "dataType": "string" },
                    {"name": "_timestamp", "defaultValue": 0, "dataType": "long"}
                ]
            },      
            {
                "indexName": "idx_2",
                "indexDirection": "in",
                "indexProps": [
                    {"name": "user_type", "defaultValue": "-", "dataType": "string" },
                    {"name": "_timestamp", "defaultValue": 0, "dataType": "long"},
                    {"name": "doc_type", "defaultValue": "-", "dataType": "string" },
                    {"name": "action_type", "defaultValue": "v", "dataType": "string" }
                ]
            }            
    ]
...
}
SteamShon commented 9 years ago

@hsleep I created new issue #116 for different index for label direction. so I think this issue can be closed.