Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-12170

Query - Stop encoding the segment ID in document IDs

    Details

      Description

      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 then 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

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  gustavonalle Gustavo Fernandes
                  Reporter:
                  y.rodiere Yoann Rodière
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: