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

Waldemar Kłaczyński (JIRA) jira at hibernate.atlassian.net
Thu Feb 27 18:35:48 EST 2020


Waldemar Kłaczyński ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A77e50cac-bda3-4af4-9bb3-6461f4d10eea ) *created* an issue

Hibernate Search ( https://hibernate.atlassian.net/browse/HSEARCH?atlOrigin=eyJpIjoiZmE4ODg1Nzg3NjVlNDNjZDgxYjI3NmZhMzgxZjZmODgiLCJwIjoiaiJ9 ) / Bug ( https://hibernate.atlassian.net/browse/HSEARCH-3845?atlOrigin=eyJpIjoiZmE4ODg1Nzg3NjVlNDNjZDgxYjI3NmZhMzgxZjZmODgiLCJwIjoiaiJ9 ) HSEARCH-3845 ( https://hibernate.atlassian.net/browse/HSEARCH-3845?atlOrigin=eyJpIjoiZmE4ODg1Nzg3NjVlNDNjZDgxYjI3NmZhMzgxZjZmODgiLCJwIjoiaiJ9 ) Ineffective search for the "simpleQueryString" predicate. ( https://hibernate.atlassian.net/browse/HSEARCH-3845?atlOrigin=eyJpIjoiZmE4ODg1Nzg3NjVlNDNjZDgxYjI3NmZhMzgxZjZmODgiLCJwIjoiaiJ9 )

Issue Type: Bug Affects Versions: 6.0.0.Beta5 Assignee: Unassigned Components: backend-lucene Created: 27/Feb/2020 15:35 PM Priority: Major Reporter: Waldemar Kłaczyński ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A77e50cac-bda3-4af4-9bb3-6461f4d10eea )

Ineffective search for the "simpleQueryString_" predicate. The SimpleQueryParser class requires the "flags" parameter in the constructor. Currently, the "flags" parameter is set to "-1", which means that the operation of this predicate does not differ from the "match" predicate. Unfortunately, this makes the predicate completely useless. The correct operation of SimpleQueryParser depends on the settings of these flags, however it is not possible to set them by defining predicates.

> 
> 
> 
> /** Enables
> 
> Unknown macro: {@code AND}
> 
> 
> operator */
> public static final int AND_OPERATOR = 1<<0;
> /** Enables
> 
> Unknown macro: {@code NOT}
> 
> 
> operator */
> public static final int NOT_OPERATOR = 1<<1;
> /** Enables
> 
> Unknown macro: {@code OR}
> 
> 
> operator (|) */
> public static final int OR_OPERATOR = 1<<2;
> /** Enables
> 
> Unknown macro: {@code PREFIX}
> 
> 
> operator */
> public static final int PREFIX_OPERATOR = 1<<3;
> /** Enables
> 
> Unknown macro: {@code PHRASE}
> 
> 
> operator (") */
> public static final int PHRASE_OPERATOR = 1<<4;
> /** Enables
> 
> Unknown macro: {@code PRECEDENCE}
> 
> 
> operators:
> 
> Unknown macro: {@code (}
> 
> 
> and
> 
> Unknown macro: {@code )}
> 
> 
> */
> public static final int PRECEDENCE_OPERATORS = 1<<5;
> /** Enables
> 
> Unknown macro: {@code ESCAPE}
> 
> 
> operator () */
> public static final int ESCAPE_OPERATOR = 1<<6;
> /** Enables
> 
> Unknown macro: {@code WHITESPACE}
> 
> 
> operators: ' ' '\n' '\r' '\t' */
> public static final int WHITESPACE_OPERATOR = 1<<7;
> /** Enables
> 
> Unknown macro: {@code FUZZY}
> 
> 
> operators: (~) on single terms */
> public static final int FUZZY_OPERATOR = 1<<8;
> /** Enables
> 
> Unknown macro: {@code NEAR}
> 
> 
> operators: (~) on phrases */
> public static final int NEAR_OPERATOR = 1<<9;
> 
> 

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

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:0fbe7c1 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200227/e1dc01b8/attachment-0001.html 


More information about the hibernate-issues mailing list