In the context of this all, I am wondering whether we should rename org.hibernate.search.bridge.builtin.IntegerBridge and co. Something like IntegerToStringBridge. We basically tell the users now, that numbers are per default indexed numerically. If they want to apply faceting or just want to encode a number as string for another reason, they need to apply an explicit field bridge, for example IntegerBridge. The problem is that the name alone does not allow to reason about how the data gets indexed. IntegerBridge might as well be the default bridge used to index an integer numerical. The name has become ambiguous now.
|