[hibernate-issues] [JIRA] (HSEARCH-3845) Ineffective search for the "simpleQueryString" predicate.

Yoann Rodière (JIRA) jira at hibernate.atlassian.net
Fri Feb 28 03:18:28 EST 2020


Yoann Rodière ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A58fa1ced-171a-4c00-97e8-5d70d442cc4b ) *commented* on HSEARCH-3845 ( https://hibernate.atlassian.net/browse/HSEARCH-3845?atlOrigin=eyJpIjoiZGI0ZGNkZjMwNDRiNDVkYjlhNDZkY2ZhZDc1NzhhYTYiLCJwIjoiaiJ9 )

Re: Ineffective search for the "simpleQueryString" predicate. ( https://hibernate.atlassian.net/browse/HSEARCH-3845?atlOrigin=eyJpIjoiZGI0ZGNkZjMwNDRiNDVkYjlhNDZkY2ZhZDc1NzhhYTYiLCJwIjoiaiJ9 )

I'm a bit confused, to be honest.

There is no way to customize the enabled flags right now. That can be annoying, and adding methods to control that is definitely a good idea. However, * *all flags are enabled* * by default. As you noticed yourself, passing "-1" as a flag simply enables all features (that's what you did in your snippet of code).

So I'm not sure how your patch solved the problem exactly, and I'm not even sure what caused the problem. Maybe it was indeed FieldContextSimpleQueryParser ? It looks like it doesn't normalize terms before creating queries, like it should. Depending on your analyzer, that could cause no results to be returned.

That being said, if you manage to make it work using standard Lucene classes instead of our custom query parser * *and* * to make all pre-existing integration tests pass... Well, that would be awesome.

( https://hibernate.atlassian.net/browse/HSEARCH-3845#add-comment?atlOrigin=eyJpIjoiZGI0ZGNkZjMwNDRiNDVkYjlhNDZkY2ZhZDc1NzhhYTYiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HSEARCH-3845#add-comment?atlOrigin=eyJpIjoiZGI0ZGNkZjMwNDRiNDVkYjlhNDZkY2ZhZDc1NzhhYTYiLCJwIjoiaiJ9 )

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#100121- sha1:090dddf )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200228/645ac670/attachment.html 


More information about the hibernate-issues mailing list