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

HSQuery.targetedEntities(List<Class<?>>) won't always work when using multiple backends

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.6.0.Beta2
    • Fix Version/s: 5.8.0.Beta4
    • Component/s: query
    • Labels:
      None

      Description

      It seems we have a API design issue with the introduction of QueryDescriptor.

      The QueryDescriptor implementation defines which backend will be used for a query (there's an implementation for each backend). Thus it's created based on which entities we're targeting (in org.hibernate.search.engine.impl.ImmutableSearchFactory.createQueryDescriptor(Query, Class<?>...)).

      But:

      1. These targeted entities are just used for backend determination, and not saved for use on query execution (see HSEARCH-2367 Closed )
      2. (that's the issue to address here) The HSQuery interface allows for later change of the targeted entities... Which could then be entities that are indexed in another backend. This would probably fail miserably at some point.

        Attachments

          Issue links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: