[hibernate-issues] [JIRA] (HSEARCH-3897) Support explain query while changing the index name

Fabio Massimo Ercoli (JIRA) jira at hibernate.atlassian.net
Sat Apr 18 09:41:49 EDT 2020


Fabio Massimo Ercoli ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A097eae70-1c75-4c16-ab75-ab9600f8e584 ) *created* an issue

Hibernate Search ( https://hibernate.atlassian.net/browse/HSEARCH?atlOrigin=eyJpIjoiMmJiNGFjMGRhZGZmNDZlYmI1ZDJmZmJhOWEyMzQxNTQiLCJwIjoiaiJ9 ) / Task ( https://hibernate.atlassian.net/browse/HSEARCH-3897?atlOrigin=eyJpIjoiMmJiNGFjMGRhZGZmNDZlYmI1ZDJmZmJhOWEyMzQxNTQiLCJwIjoiaiJ9 ) HSEARCH-3897 ( https://hibernate.atlassian.net/browse/HSEARCH-3897?atlOrigin=eyJpIjoiMmJiNGFjMGRhZGZmNDZlYmI1ZDJmZmJhOWEyMzQxNTQiLCJwIjoiaiJ9 ) Support explain query while changing the index name ( https://hibernate.atlassian.net/browse/HSEARCH-3897?atlOrigin=eyJpIjoiMmJiNGFjMGRhZGZmNDZlYmI1ZDJmZmJhOWEyMzQxNTQiLCJwIjoiaiJ9 )

Issue Type: Task Affects Versions: 6.0.0.Beta6 Assignee: Unassigned Components: backend-lucene Created: 18/Apr/2020 06:41 AM Fix Versions: 6.0.0.Beta-backlog-high-priority Priority: Major Reporter: Fabio Massimo Ercoli ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A097eae70-1c75-4c16-ab75-ab9600f8e584 )

It seems we cannot do an explain query using the Lucene extension if we change the index name, e.g: setting the name attribute of an @Index annotation.

On attach I will leave a patch to reproduce the case, it targets the showcase IT module, I didn’t have the time to understand if the issue is due by the mapper or by the backend side.

E.g: changing the index name from Book to book (all lowercase) the error message will be:

org.hibernate.search.util.common.SearchException: HSEARCH600077: Document with id '1' does not exist in index 'book' and thus its match cannot be explained.

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

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#100124- sha1:93e2dd3 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200418/3ddb355a/attachment.html 


More information about the hibernate-issues mailing list