[hibernate-issues] [JIRA] (HSEARCH-3888) How to query in "Hibernate Search" fuzzy mode with FuzzyContext.withEditDistanceUpTo() with more than 2 "changes"?

TNT2k (JIRA) jira at hibernate.atlassian.net
Thu Apr 23 06:28:10 EDT 2020


TNT2k ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5e8ded44be041a0b78e26b8a ) *commented* on HSEARCH-3888 ( https://hibernate.atlassian.net/browse/HSEARCH-3888?atlOrigin=eyJpIjoiNjk0OWM2NDYzODQ1NGI0MmJiYjIxYWQ2ZTBiMWI3NjEiLCJwIjoiaiJ9 )

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=eyJpIjoiNjk0OWM2NDYzODQ1NGI0MmJiYjIxYWQ2ZTBiMWI3NjEiLCJwIjoiaiJ9 )

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/queries/SlowFuzzyQuery.html ) ).

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=eyJpIjoiNjk0OWM2NDYzODQ1NGI0MmJiYjIxYWQ2ZTBiMWI3NjEiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HSEARCH-3888#add-comment?atlOrigin=eyJpIjoiNjk0OWM2NDYzODQ1NGI0MmJiYjIxYWQ2ZTBiMWI3NjEiLCJwIjoiaiJ9 )

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.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100125- sha1:63ccdc5 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200423/f56193d8/attachment.html 


More information about the hibernate-issues mailing list