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

Phrase query with the DSL does not consider the `ignoreAnalyzer()` options

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.0.0.Alpha4
    • Component/s: None
    • Labels:
      None
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

      Description

      This is an example of what I'm talking about:

      Query query = queryBuilder
                          .phrase()
                              .onField( "message" )
                                  .ignoreAnalyzer()
      ...
                          .createQuery();
      
      

      I'm not sure if it make sense to ignore the analyzer when dealing with phrase queries. If it is not the case, we should remove the option from the dsl when dealing with phrase queries. Alternatively, we can log a warning/exception.

      See ConnectedMultiFieldsPhraseQueryBuilder.java

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                fercoli Fabio Massimo Ercoli
                Reporter:
                davided Davide D'Alto
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: