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

Overriding an analyzer in the queryBuilder with an unknown analyzer should lead to a proper SearchException

    Details

      Description

      Currently we throw an NPE, see https://discourse.hibernate.org/t/cannot-find-the-second-analyzer-when-using/1043/3

      This is a problem for two reasons:

      1. An NPE is not very explicit. If we fail, we should fail with a clear error message
      2. When using Elasticsearch, we probably shouldn't fail at all, since analyzers may be unknown to us (not defined in Hibernate Search), but still be present in the Elasticsearch index settings (added by the user directly)

        Attachments

          Issue links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: