JanusGraph / JanusGraph/janusgraph

Add SETTINGS parameter for index keys

Open
#1,104 4 comments 0 reactions 0 assignees View on GitHub
help wanted index/elasticsearch kind/enhancement
Dominant language
Java
Stars
5.8k
Forks
1.2k
Avg merge
13h 53m
Merged PRs (30d)
6

Description

I think it would be very useful to add `SETTINGS` parameter for index creation. With this option we could create more useful indexes like sorted index (https://www.elastic.co/blog/index-sorting-elasticsearch-6-0).

I imagine the creation process of sorted index could be like this (just a suggestion, I am not sure of it):
```
mgmt.buildIndex('borderIndex', Vertex.class).addKey(name, Settings.SORTED.asParameter())
.buildMixedIndex("search")
```

Related discussion:
https://groups.google.com/forum/#!searchin/janusgraph-users/elasticsearch$206%7Csort:date/janusgraph-users/dtBxqdR2qr0/ieXJdWaVAAAJ

Contributor guide

Open the contributing guide

Research direction

Start with the buildIndex and buildMixedIndex API shown in the issue, then read the related JanusGraph user discussion about Elasticsearch index sorting. Determine how index-key parameters are currently represented and what SETTINGS support should cover; done means the requested setting can be supplied during index creation and its behavior is verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
elasticsearch, java
Domain
backend, databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.