Btw. here is a PR which adds some tests around this (besides auto-disabling analyzers in query terms on id fields): https://github.com/hibernate/hibernate-search/pull/779 Maybe you can change one of these tests so it reproduces your issue?