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

Register a pass through analyzer for the @DocumentId field

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.10.0.Beta2, 5.9.2.Final
    • Component/s: engine
    • Labels:
      None

      Description

      This is a follow up of https://stackoverflow.com/questions/49573466/hibernate-search-not-returning-search-results-on-primary-key/49573853#49573853 .

      The SimpleQueryParser builds the query depending on the analyzers. As we don't register an analyzer for the id field, it uses the default analyzer which is the StandardAnalyzer. This is incorrect as the id is not analyzed at all.

        Attachments

          Activity

            People

            • Assignee:
              gsmet Guillaume Smet
              Reporter:
              gsmet Guillaume Smet
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: