jvwilge wrote:
Is it possible to search on number ranges with only adding a @FieldBridge annotation to the field? I use the PaddedIntegerBridge from the manual and it indexes the data correctly, but I still have to pad my query wit zeroes.
That is correct. If you want to use range queries you will have to make sure that you numbers get padded at indexing time (that's what the PaddedIntegerBridge does) and at query time.
jvwilge wrote:
As far as I understand I also have to create a custom QueryParser to pad the zeroes of my Query (
http://wiki.apache.org/lucene-java/Sear ... icalFields). This parser basicly does the same thing as the PaddedIntegerBridge.
Is there something like a FieldBridgeQueryParser?
Yes, this is the right approach. There is is some example code in the "Lucene in Action" book as well.
And no, there is no FieldBridgeQueryParser :) When it comes to querying the Lucene index you have to write native Lucene queries. There is no special support from Hibernate Search for that.