public class Search extends Object
Constructor and Description |
---|
Search() |
Modifier and Type | Method and Description |
---|---|
static P<Object> |
fuzzy(String query,
int distance)
Supports fuzzy searches based on the Damerau-Levenshtein Distance, or Edit Distance algorithm
(case sensitive).
|
static P<Object> |
phrase(String query,
int distance)
Supports finding words which are a within a specific distance away (case insensitive).
|
static P<Object> |
prefix(String value)
Search for a specific prefix at the beginning of the text property targeted (case sensitive).
|
static P<Object> |
regex(String value)
Search for this regular expression inside the text property targeted (case sensitive).
|
static P<Object> |
token(String value)
Search any instance of a certain token within the text property targeted (case insensitive).
|
static 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 P<Object> |
tokenPrefix(String value)
Search any instance of a certain token prefix within the text property targeted (case insensitive).
|
static P<Object> |
tokenRegex(String value)
Search any instance of the provided regular expression for the targeted property (case insensitive).
|
public static P<Object> token(String value)
value
- the token to look for.GraphTraversal
.public static P<Object> tokenPrefix(String value)
value
- the token to look for.GraphTraversal
.public static P<Object> tokenRegex(String value)
value
- the token to look for.GraphTraversal
.public static P<Object> prefix(String value)
value
- the value to look for.GraphTraversal
.public static P<Object> regex(String value)
value
- the value to look for.GraphTraversal
.public static 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 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 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–2018. All rights reserved.