JanusGraph/janusgraph

Add SETTINGS parameter for index keys

Open

#1.104 geöffnet am 8. Juni 2018

Auf GitHub ansehen
 (4 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Java (1.137 Forks)batch import
help wantedindex/elasticsearchkind/enhancement

Repository-Metriken

Stars
 (4.985 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 3T 18h) (12 gemergte PRs in 30 T)

Beschreibung

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