[hibernate-issues] [JIRA] (HSEARCH-3861) Elasticsearch search queries fetch the whole document source by default

Yoann Rodière (JIRA) jira at hibernate.atlassian.net
Tue Mar 10 06:38:06 EDT 2020


Yoann Rodière ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A58fa1ced-171a-4c00-97e8-5d70d442cc4b ) *created* an issue

Hibernate Search ( https://hibernate.atlassian.net/browse/HSEARCH?atlOrigin=eyJpIjoiZGFhZmVhM2JhYzBkNGQ4M2JiY2UyOTBjZWIyNWFhMmEiLCJwIjoiaiJ9 ) / Bug ( https://hibernate.atlassian.net/browse/HSEARCH-3861?atlOrigin=eyJpIjoiZGFhZmVhM2JhYzBkNGQ4M2JiY2UyOTBjZWIyNWFhMmEiLCJwIjoiaiJ9 ) HSEARCH-3861 ( https://hibernate.atlassian.net/browse/HSEARCH-3861?atlOrigin=eyJpIjoiZGFhZmVhM2JhYzBkNGQ4M2JiY2UyOTBjZWIyNWFhMmEiLCJwIjoiaiJ9 ) Elasticsearch search queries fetch the whole document source by default ( https://hibernate.atlassian.net/browse/HSEARCH-3861?atlOrigin=eyJpIjoiZGFhZmVhM2JhYzBkNGQ4M2JiY2UyOTBjZWIyNWFhMmEiLCJwIjoiaiJ9 )

Issue Type: Bug Assignee: Unassigned Components: backend-elasticsearch Created: 10/Mar/2020 03:38 AM Fix Versions: 6.0.0.Beta-backlog-high-priority Priority: Major Reporter: Yoann Rodière ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A58fa1ced-171a-4c00-97e8-5d70d442cc4b )

It seems that since we moved to docvalues for ID/type fetching, we don't always set the _source attribute in search queries, and as a result Elasticsearch defaults to sending us everything, even though we don't need the source at all in these cases.

We should add a bit after all projections contributed their request, and if the source is not set, set it to false.

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

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:545f4ab )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200310/0f3c72cf/attachment.html 


More information about the hibernate-issues mailing list