public class Search extends Object
Constructor and Description |
---|
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).
|
public static org.apache.tinkerpop.gremlin.process.traversal.P<Object> token(String value)
value
- the token to look for.GraphTraversal
.public static org.apache.tinkerpop.gremlin.process.traversal.P<Object> tokenPrefix(String value)
value
- the token to look for.GraphTraversal
.public static org.apache.tinkerpop.gremlin.process.traversal.P<Object> tokenRegex(String value)
value
- the token to look for.GraphTraversal
.public static org.apache.tinkerpop.gremlin.process.traversal.P<Object> prefix(String value)
value
- the value to look for.GraphTraversal
.public static org.apache.tinkerpop.gremlin.process.traversal.P<Object> regex(String value)
value
- the value to look for.GraphTraversal
.public static org.apache.tinkerpop.gremlin.process.traversal.P<Object> phrase(String query, int distance)
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
.public static org.apache.tinkerpop.gremlin.process.traversal.P<Object> fuzzy(String query, int distance)
fuzzy("david", 1)
query
- the string to look for in the valuedistance
- the number of "uncertainties" allowed for the Leveinshtein algorithm.GraphTraversal
.public static org.apache.tinkerpop.gremlin.process.traversal.P<Object> tokenFuzzy(String query, int distance)
tokenFuzzy("david", 1)
query
- the string to look for in the valuedistance
- the number of "uncertainties" allowed for the Leveinshtein algorithm.GraphTraversal
.Copyright © 2012–2017. All rights reserved.