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. |