[hibernate-issues] [JIRA] (HSEARCH-3844) Exception: null: java.lang.NullPointerException when use simpleQueryString()

Yoann Rodière (JIRA) jira at hibernate.atlassian.net
Thu Feb 27 12:47:45 EST 2020


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

Re: Exception: null: java.lang.NullPointerException when use simpleQueryString() ( https://hibernate.atlassian.net/browse/HSEARCH-3844?atlOrigin=eyJpIjoiNDNlMTgwOWE5YjFhNDk2M2FkNjIxNTNkMTEzMDMwM2EiLCJwIjoiaiJ9 )

The fix is ready, it'll be part of the next release.

In the meantime, you can work around the problem by setting an analyzer or normalizer on your field using @KeywordField(normalizer = ...) or @FullTextField(analyzer = ...). Which is something you'll want to do anyway to take advantage of full-text capabilities.

See here ( https://docs.jboss.org/hibernate/search/6.0/reference/en-US/html_single/#concepts-analysis ) for more information about analysis, here ( https://docs.jboss.org/hibernate/search/6.0/reference/en-US/html_single/#mapper-orm-directfieldmapping-annotations ) for more information about property/field mapping. In particular, here ( https://docs.jboss.org/hibernate/search/6.0/reference/en-US/html_single/#backend-lucene-analysis ) is how to define your analyzers/normalizers with the Lucene backend.

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

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/14491da8/attachment.html 


More information about the hibernate-issues mailing list