Yoann Rodière (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *closed* an issue as *Rejected*
Please use discourse (
https://discourse.hibernate.org/c/hibernate-search ) or
stackoverflow (
https://stackoverflow.com/questions/tagged/hibernate-search ) for usage
questions, and only create tickets for feature requests with a documented use cases or bug
reports.
As to your question: it's not possible. Lucene only supports a Levenshtein distance of
at most 2. That's hardcoded into the algorithm. See the javadoc of
org.apache.lucene.search.FuzzyQuery#FuzzyQuery(org.apache.lucene.index.Term, int, int,
int, boolean) and
org.apache.lucene.util.automaton.LevenshteinAutomata#MAXIMUM_SUPPORTED_DISTANCE.
There may be other ways to achieve what you are trying to do, however. Post a question
explaining your problem in more details, and maybe someone will suggest a solution.
Hibernate Search (
https://hibernate.atlassian.net/browse/HSEARCH?atlOrigin=eyJpIjoiNWNiYzkw...
) / New Feature (
https://hibernate.atlassian.net/browse/HSEARCH-3888?atlOrigin=eyJpIjoiNWN...
) HSEARCH-3888 (
https://hibernate.atlassian.net/browse/HSEARCH-3888?atlOrigin=eyJpIjoiNWN...
) How to query in "Hibernate Search" fuzzy mode with
FuzzyContext.withEditDistanceUpTo() with more than 2 "changes"? (
https://hibernate.atlassian.net/browse/HSEARCH-3888?atlOrigin=eyJpIjoiNWN...
)
Change By: Yoann Rodière (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) Assignee: Yoann Rodière Resolution: Rejected Status: Open Closed
(
https://hibernate.atlassian.net/browse/HSEARCH-3888#add-comment?atlOrigin...
) Add Comment (
https://hibernate.atlassian.net/browse/HSEARCH-3888#add-comment?atlOrigin...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100124- sha1:c13ca0d )