When using janusgraph text predicates for fuzzy search, is it possible to control the fuzziness?
I am using text_contains_fuzzy method from janusgraph python library but I can't tell from the types whether the function accepts anything apart from the string value
1 Reply
This is unfortunately not possible at the moment. The predicate just accepts a single parameter which is the word to search. It shouldn't be difficult to support additional arguments however if they are supported by the index backends.
ES for example has an optional parameter
fuzziness
which takes the maximum edit distance.
Feel free to create a feature request in the issue tracker for this: https://github.com/JanusGraph/janusgraph/issues/new?assignees=&labels=&projects=&template=feature-request.md
and you could of course also create a PR to implement thisGitHub
Build software better, together
GitHub is where people build software. More than 100 million people use GitHub to discover, fork, and contribute to over 420 million projects.