public interface Search
Modifier and Type | Method and Description |
---|---|
static org.apache.tinkerpop.gremlin.process.traversal.P<Object> |
fuzzy(String query,
int distance)
Supports fuzzy searches based on the Damerau-Levenshtein Distance, or Edit Distance algorithm
(case sensitive).
|
static org.apache.tinkerpop.gremlin.process.traversal.P<Object> |
phrase(String query,
int distance)
Supports finding words which are a within a specific distance away (case insensitive).
|
static org.apache.tinkerpop.gremlin.process.traversal.P<Object> |
prefix(String value)
Search for a specific prefix at the beginning of the text property targeted (case sensitive).
|
static org.apache.tinkerpop.gremlin.process.traversal.P<Object> |
regex(String value)
Search for this regular expression inside the text property targeted (case sensitive).
|
static org.apache.tinkerpop.gremlin.process.traversal.P<Object> |
token(String value)
Search any instance of a certain token within the text property targeted (case insensitive).
|
static org.apache.tinkerpop.gremlin.process.traversal.P<Object> |
tokenFuzzy(String query,
int distance)
Supports fuzzy searches based on the Damerau-Levenshtein Distance, or Edit Distance algorithm
after having tokenized the data stored (case insensitive).
|
static org.apache.tinkerpop.gremlin.process.traversal.P<Object> |
tokenPrefix(String value)
Search any instance of a certain token prefix within the text property targeted (case
insensitive).
|
static org.apache.tinkerpop.gremlin.process.traversal.P<Object> |
tokenRegex(String value)
Search any instance of the provided regular expression for the targeted property (case
insensitive).
|
static org.apache.tinkerpop.gremlin.process.traversal.P<Object> token(String value)
GraphTraversal
.static org.apache.tinkerpop.gremlin.process.traversal.P<Object> tokenPrefix(String value)
GraphTraversal
.static org.apache.tinkerpop.gremlin.process.traversal.P<Object> tokenRegex(String value)
GraphTraversal
.static org.apache.tinkerpop.gremlin.process.traversal.P<Object> prefix(String value)
GraphTraversal
.static org.apache.tinkerpop.gremlin.process.traversal.P<Object> regex(String value)
GraphTraversal
.static org.apache.tinkerpop.gremlin.process.traversal.P<Object> phrase(String query, int distance)
Example: the search expression is phrase("Hello world", 2)
query
- the string to look for in the valuedistance
- the number of terms allowed between two correct terms to find a value.GraphTraversal
.static org.apache.tinkerpop.gremlin.process.traversal.P<Object> fuzzy(String query, int distance)
Example: the search expression is fuzzy("david", 1)
query
- the string to look for in the valuedistance
- the number of "uncertainties" allowed for the Levenshtein algorithm.GraphTraversal
.static org.apache.tinkerpop.gremlin.process.traversal.P<Object> tokenFuzzy(String query, int distance)
Example: the search expression is tokenFuzzy("david", 1)
query
- the string to look for in the valuedistance
- the number of "uncertainties" allowed for the Levenshtein algorithm.GraphTraversal
.Copyright © 2017–2024. All rights reserved.