public static interface VertexIndex.Builder
| Modifier and Type | Method and Description |
|---|---|
VertexIndex |
add() |
VertexIndex.Builder |
byPropertyKey(java.lang.String propertyKey)
Indexes a property key using default options.
|
VertexIndex.Builder |
byPropertyKeyAsStringAndText(java.lang.String propertyKey)
Force indexing as both plain strings and analyzed text for the given property.
|
VertexIndex.Builder |
byPropertyKeyAsText(java.lang.String propertyKey,
VertexIndex.IndexOption.Text option)
Only supported for
VertexIndex.Type.Search indexes |
VertexIndex.Builder |
byPropertyKeyWithError(java.lang.String propertyKey,
java.lang.Double maxDistErr,
java.lang.Double distErrPct)
Only supported for
VertexIndex.Type.Search geo indexes |
VertexIndex.Builder |
ifNotExists() |
default VertexIndex.Builder |
materialized()
Sets the
VertexIndex.Type of this index to VertexIndex.Type.Materialized |
default VertexIndex.Builder |
search()
Sets the
VertexIndex.Type of this index to VertexIndex.Type.Search |
default VertexIndex.Builder |
secondary()
Sets the
VertexIndex.Type of this index to VertexIndex.Type.Secondary |
VertexIndex.Builder |
type(VertexIndex.Type type)
Sets the
VertexIndex.Type of this index. |
VertexIndex.Builder |
unique()
This is not yet supported
|
VertexIndex.Builder type(VertexIndex.Type type)
VertexIndex.Type of this index. The type must be set.type - The type of this indexdefault VertexIndex.Builder search()
VertexIndex.Type of this index to VertexIndex.Type.Searchtype(VertexIndex.Type)default VertexIndex.Builder materialized()
VertexIndex.Type of this index to VertexIndex.Type.Materializedtype(VertexIndex.Type)default VertexIndex.Builder secondary()
VertexIndex.Type of this index to VertexIndex.Type.Secondarytype(VertexIndex.Type)VertexIndex.Builder byPropertyKey(java.lang.String propertyKey)
propertyKey
is part of the vertex label's ID. If it is part of the vertex label's ID, then
this method indexes the property key as a plain string, without fulltext analysis.
If it is not part of the vertex label's ID, then this method indexes the property
key as both a plain string and with fulltext analysis. To force the latter
behavior on properties that are part of the vertex label's ID, use
byPropertyKeyAsStringAndText(String) instead.propertyKey - The property key by which vertices are indexedVertexIndex.Builder byPropertyKeyAsText(java.lang.String propertyKey, VertexIndex.IndexOption.Text option)
VertexIndex.Type.Search indexespropertyKey - The property key by which vertices are indexedoption - The text index option for configuring the indexing mechanism.VertexIndex.Builder byPropertyKeyAsStringAndText(java.lang.String propertyKey)
VertexIndex.Type.Search indexes.propertyKey - the property key by which vertices are indexedVertexIndex.Builder byPropertyKeyWithError(java.lang.String propertyKey, java.lang.Double maxDistErr, java.lang.Double distErrPct)
VertexIndex.Type.Search geo indexespropertyKey - The property key by which vertices are indexedVertexIndex.Builder ifNotExists()
VertexIndex.Builder unique()
VertexIndex add()