Date
1 - 4 of 4
Form of Fuzzy Direct Index Query
Jamie Lawson <jamier...@...>
Trying to do a fuzzy full-text query in JanusGraph. I have a Lucene index backend running. I have a Propery Key named "text" that is of String type, and cardinality SINGLE. I have a Lucene-backed index called "fuzzysearch" based on that property. So, again:
graph.indexQuery("fuzzysearch", "v.text:(Jones)").vertices It returns the vertex whose text property key has the value "Jones". I would like to do a "textFuzzy" or "textContainsFuzzy" query with the parameter "Jons" to get the same vertex, in Scala. I do not see from the documentation how to do that. Where do I put the "textFuzzy"? Any help would be greatly appreciated. |
|
David Pitera <piter...@...>
This page should have all the information you're looking for: http://docs.janusgraph.org/latest/index-parameters.html Also, I would advise you to use the gremlin APIs (like the docs do) and avoid the direct index queries. On Mon, Nov 13, 2017 at 4:48 PM, Jamie Lawson <jamier...@...> wrote:
|
|
David Pitera <piter...@...>
Pulling from http://docs.janusgraph.org/latest/index-parameters.html : 1. check how you created the index, using either the `Mapping.STRING` or `Mapping.TEXT` parameter (because you can't use Mapping.TEXTSTRING On Mon, Nov 13, 2017 at 4:56 PM, Jamie Lawson <jamier...@...> wrote:
|
|
David Pitera <piter...@...>
whoops.. continued.. unless you use Elasticsearch 2. ensure you using the proper gremlin call according to how you stored the index: `g.V().has('text', textFuzzy('Jons'))` for` Mapping.STRING` or `g.V().has('text', textContainsFuzzy('Jons'))` for `Mapping.TEXT` On Tue, Nov 14, 2017 at 2:59 PM, David Pitera <piter...@...> wrote:
|
|