[infinispan-issues] [JBoss JIRA] (ISPN-12170) Query - Stop encoding the routing key in document IDs

Yoann Rodière (Jira) issues at jboss.org
Mon Jul 27 09:40:00 EDT 2020


Yoann Rodière created ISPN-12170:
------------------------------------

             Summary: Query - Stop encoding the routing key in document IDs
                 Key: ISPN-12170
                 URL: https://issues.redhat.com/browse/ISPN-12170
             Project: Infinispan
          Issue Type: Task
          Components: Embedded Querying, Remote Querying
    Affects Versions: 12.0.0.Dev01
            Reporter: Yoann Rodière
             Fix For: 12.0.0.Dev02


We're currently relying on a hack to determine routing keys for indexed documents in Infinispan Query. That is, we concatenate the ID with the segment ID, and use a routing key bridge to extract the segment ID and use it as a routing key.

 

A nasty side-effect is that we include the segment ID in the ID of indexed documents in the index.

 

With Hibernate Search 6.0.0.Beta9, this won't be necessary anymore: we'll be able to pass the segment ID (routing key) to Hibernate Search directly. This means we'll be able to remove the hack and to use cleaner document IDs.

 

This removal means documents will have a different ID, and thus any existing index will have to be rebuilt. Thus this should be done ASAP.

 

See the implementation of RoutingKeyBridge in Infinispan, and see https://hibernate.atlassian.net/browse/HSEARCH-3891



--
This message was sent by Atlassian Jira
(v7.13.8#713008)



More information about the infinispan-issues mailing list