TNT2k (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5e8ded4...
) *commented* on HSEARCH-3888 (
https://hibernate.atlassian.net/browse/HSEARCH-3888?atlOrigin=eyJpIjoiNjk...
)
Re: How to query in "Hibernate Search" fuzzy mode with
FuzzyContext.withEditDistanceUpTo() with more than 2 "changes"? (
https://hibernate.atlassian.net/browse/HSEARCH-3888?atlOrigin=eyJpIjoiNjk...
)
I searched around a bit, and found a “SlowFuzzyQuery” in a sandbox version of lucene (
maven (
https://mvnrepository.com/artifact/org.apache.lucene/lucene-sandbox ) , javadoc (
https://lucene.apache.org/core/4_0_0/sandbox/org/apache/lucene/sandbox/qu...
) ).
This SlowFuzzyQuery is able to do, what I need, but is a bit slower (which is not a factor
for me). May you implement this class into your QueryBuilder (
org.hibernate.search.query.dsl.TermContext.QueryBuilder ). I would highly appreciate this,
because it would give me the possibility to uses custom analyzers, what I can not do
without the QueryBuilder.
Example code for current usage:
this.fullTextEntityManager.createFullTextQuery( new SlowFuzzyQuery( new Term(
"NAME" , "SEARCH_TERM".toLowerCase()), minimumSimilarity),
CLASS).getResultList()
(
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#100125- sha1:63ccdc5 )