Uploaded image for project: 'Hibernate Search'
  1. HSEARCH-2561

Allow sorting metadata to be overriden during query execution

    Details

    • Type: Task
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.7.0.Final
    • Component/s: None
    • Labels:
      None

      Description

      We want to add an SPI method like

      HSQuery createHSQuery(Query luceneQuery, CustomTypeMetadata m);

      to eventually replace the method

      HSQuery createHSQuery(Query luceneQuery, Class<?>... entities);

      The new CustomTypeMetadata will encapsulate:

      • which types are being targeted
      • a way to override the otherwise used SortableFieldMapping

      The main reason is to allow Infinispan Query to skip the uninverting of indexes (org.hibernate.search.reader.impl.ManagedMultiReader.getIndexesToBeUninverted(SortConfigurations, Sort, boolean), as the metadata is not defined at initialization time, but is known at runtime.

        Attachments

          Activity

            People

            • Assignee:
              yrodiere Yoann Rodière
              Reporter:
              sanne Sanne Grinovero
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: