[hibernate-issues] [JIRA] (HSEARCH-3499) Near-zero-downtime mass indexing

Matt Howard (JIRA) jira at hibernate.atlassian.net
Wed Jun 17 13:14:28 EDT 2020


Matt Howard ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A40cb4599-889b-4604-9631-0f8b4f82eb43 ) *commented* on HSEARCH-3499 ( https://hibernate.atlassian.net/browse/HSEARCH-3499?atlOrigin=eyJpIjoiMWYzMjBmZGU5ZGQ3NDhlM2E2NzY3MWY1MjZkZTBlMmUiLCJwIjoiaiJ9 )

Re: Near-zero-downtime mass indexing ( https://hibernate.atlassian.net/browse/HSEARCH-3499?atlOrigin=eyJpIjoiMWYzMjBmZGU5ZGQ3NDhlM2E2NzY3MWY1MjZkZTBlMmUiLCJwIjoiaiJ9 )

Is there a way to access the (expected) mapping of a given index? I am attempting to manually implement a zero-downtime reindexing (ES backend) as outlined in the docs: https://docs.jboss.org/hibernate/search/6.0/reference/en-US/html_single/#backend-elasticsearch-indexlayout

But when creating the new index (by calling the ES API directly) I don’t see how to post the index mappings along with the new index.

Create a new index, myindex-000002.

I’m attempting to do this when our mappings change so I can’t just get the existing JSON from the ES API and copy them. I believe I need to use the ES API directly rather than using the SchemaManager in hsearch, because schema management doesn’t like the read/write aliases pointing to different indexes:

HSEARCH400593: Index aliases [test_indexed_entity-write, test_indexed_entity-read] are assigned to a single Hibernate Search index, but they are already defined in Elasticsearch and point to multiple distinct indexes: [test_indexed_entity-000002, test_indexed_entity-000001]

Am I taking the wrong approach or just missing how to access the updated IndexMetadata ?

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

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#100129- sha1:3ed9692 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200617/3afe61d9/attachment.html 


More information about the hibernate-issues mailing list