No it's
http://fisheye.labs.jboss.com/browse/Hibernate/branches/Branch_3_2/HibernateExt/metadata/src/java/org/hibernate/search/engine/DocumentBuilder.java?r=10867
I have merged everything back to the 3.2 version and the version you point to is a very old one :-)

You can do what you want through a @FieldBridge (which is probably what you refer to as a @SearchableConverter). Check the documentation in
http://fisheye.labs.jboss.com/browse/Hibernate/branches/Branch_3_2/HibernateExt/metadata/doc/reference
(just run ant to build it)

You can also have a look at a previous mail of mine
http://www.mail-archive.com/hibernate-dev%40lists.jboss.org/msg00392.html
http://www.mail-archive.com/hibernate-dev%40lists.jboss.org/msg00393.html



Mario Ivankovits wrote:

Hi!

Is [1] the actual version of the DocumentBuilder?

If so, I think we miss something like a "converter" on fields. As far as
I remember to allow "range queries" (from, to value) you have to create
a special string which allows this for numeric values and dates.
You have to ensure ordering for numerics even with "string comparision",
means, you have to convert e.g.
17 to 000017 and
1112 to 001112
so that you can execute a range query on them. Similar for dates.

You can create those strings for numerics automatically if the user
provides a e.g @Min, @Max annotation, still, having a
@SearchableConverter where you can define a converter would be great.

For sure, you have to take core of the used strategy when building the
query too.

Ciao,
Mario

[1]
http://fisheye.labs.jboss.com/browse/Hibernate/branches/Lucene_Integration/HibernateExt/metadata/src/java/org/hibernate/lucene/DocumentBuilder.java?r=10076

_______________________________________________
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev

_______________________________________________
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev

Reply via email to