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

There's no straightforward way to execute backend-independent queries from the engine module

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.6.0.Beta2
    • Component/s: query
    • Labels:
      None

      Description

      Sometimes, mainly in tests, it may be useful to be able to execute queries in a backend-independent way.
      However, the mechanic that enables that is located in the ORM module, more precisely here: https://github.com/hibernate/hibernate-search/blob/a62de30245f726361c1566d91a62c618b6446999/orm/src/main/java/org/hibernate/search/impl/FullTextSessionImpl.java#L75
      Since the relevant SPIs are located in the engine module, it feels like it's a feature of the engine module and hence the code using the SPIs should be located there. Then it would be possible to expose a way for other modules to create a QueryDescriptor in a transparent way, without knowing about the backend or manipulating services (that may or may not exist).

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                yrodiere Yoann Rodière
                Reporter:
                yrodiere Yoann Rodière
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: