Migrating @FieldBridge to v6.1

Hello,

The bridge you were using was indexing your Long as text instead of a numeric value, which is an odd choice probably motivated by backwards compatibility requirements (numeric values used not to exist at all in Lucene, a long time ago). As a result, you had to use text queries instead of (newer, better performing) numeric queries to search on this field.

So, it really depends how you search. If you use Hibernate Search’s DSL, it will always use the right type of query. If you’re using native Lucene queries, you need to be careful. What’s the code that runs your search query?

See also: .fromLuceneQuery(…) not matching @GenericField fields - #2 by yrodiere