Re: [hibernate-dev] [Hibernate Search] DocValues and Sorting API -> new mapping annotations ?

2015-08-05 Thread Gunnar Morling
Hi, I think a great solution for that would be to leverage "annotation composition" as done e.g. in CDI and Bean Validation. There would be an annotation @DocValuesField which will cause the creation of a DocValues and which would expose attributes required for its configuration: @DocValuesF

Re: [hibernate-dev] [Hibernate Search] Database back end worker

2015-08-05 Thread Martin Braun
Hi, Note: I am no core developer of Hibernate Search, but I am currently working on something that looks quite similar to what you are doing :). One part of it is an updating mechanism based on triggers that uses the database as a event-storage as well. It's not the exact same thing, but relat

Re: [hibernate-dev] HSEARCH Java 8 Date Time

2015-08-05 Thread Gunnar Morling
Hi, What's the motivation for using a different representation in that case? For the sake of consistency, I'd use milli seconds since 1970-01-01 across the board. Otherwise it'll be more difficult to compare fields created from properties of different date types. --Gunnar 2015-08-04 19:49 GMT+

Re: [hibernate-dev] HSEARCH Java 8 Date Time

2015-08-05 Thread Sanne Grinovero
Our current implementation converts Date in the long "distance from epoch" to allow correct range-queries treating each Date as an instant in time - allowing a universal sorting strategy. But a LocalDate is not an instant-in-time. A LocalDate is intentionally oblivious of the timezone; as the java

Re: [hibernate-dev] HSEARCH Java 8 Date Time

2015-08-05 Thread Davide D'Alto
> wouldn't use NumericField(s) in this case, as they are more > effective only with larger ranges, while MM and DD are very short; I'm ok with that, it just that the @DateBridge annotation allows to choose the encoding and it would sound strange not to enable this annotation for this type. On

Re: [hibernate-dev] HSEARCH Java 8 Date Time

2015-08-05 Thread Sanne Grinovero
On 5 August 2015 at 14:29, Davide D'Alto wrote: >> wouldn't use NumericField(s) in this case, as they are more >> effective only with larger ranges, while MM and DD are very short; > > > I'm ok with that, it just that the @DateBridge annotation allows to choose > the encoding > and it would sound

Re: [hibernate-dev] 5.0 defaults

2015-08-05 Thread Steve Ebersole
Ok, I am changing my mind ImplicitNamingStratregy as well. Gail's "annotation javadoc" argument swayed me. I have already changed the defaults for keyword-auto-quoting (to false) and use-new-generator-mappings (to true). I will add a change for the default ImplicitNamingStratregy as well for CR4

Re: [hibernate-dev] HSEARCH Java 8 Date Time

2015-08-05 Thread Gunnar Morling
2015-08-05 12:41 GMT+02:00 Sanne Grinovero : > Our current implementation converts Date in the long "distance from > epoch" to allow correct range-queries treating each Date as an instant > in time - allowing a universal sorting strategy. But a LocalDate is > not an instant-in-time. > > A LocalDat

Re: [hibernate-dev] HSEARCH Java 8 Date Time

2015-08-05 Thread Davide D'Alto
If a user select a resolution that does not make much sense we can log a warning. But I think this might make sense: @DateBridge(resolution=MONTH) LocalDate birthday; On Wed, Aug 5, 2015 at 3:37 PM, Davide D'Alto wrote: > > What would you do though in case of the following: > > > > @D

Re: [hibernate-dev] HSEARCH Java 8 Date Time

2015-08-05 Thread Davide D'Alto
> What would you do though in case of the following: > > @DateBridge >LocalDate myDate; > > encoding() defaults to NUMERIC, so would you a) raise an error, or b) ignore encoding() for LocalDate and friends? Both seem not right to me. I think there is nothing wrong with using NUMERIC encoding

Re: [hibernate-dev] HSEARCH Java 8 Date Time

2015-08-05 Thread Sanne Grinovero
Inline: On 5 August 2015 at 15:42, Davide D'Alto wrote: > If a user select a resolution that does not make much sense we can log a > warning. +1 And update the javadoc to mention that some resolution values don't apply > But I think this might make sense: > >@DateBridge(resolution=MONTH) >

Re: [hibernate-dev] HSEARCH Java 8 Date Time

2015-08-05 Thread Gunnar Morling
> as I'd like us to consider not applying DateBridge on the new types as it doesn't seem to add much practical value. Ok, that may make sense for types such as LocalDate. But there are types in the new API which - unlike LocalDate - do describe an exact instant on the time line (e.g. ZonedDateTime

Re: [hibernate-dev] HSEARCH Java 8 Date Time

2015-08-05 Thread Sanne Grinovero
On 5 August 2015 at 16:27, Gunnar Morling wrote: >> as I'd like us to consider not > applying DateBridge on the new types as it doesn't seem to add much > practical value. > > Ok, that may make sense for types such as LocalDate. But there are types in > the new API which - unlike LocalDate - do de

Re: [hibernate-dev] HSEARCH Java 8 Date Time

2015-08-05 Thread Davide D'Alto
> Proposal: use numeric but still - rather than taking the milliseconds > from epoch, take the resulting number from MMDD ? I don't think I understand what you mean with "the resulting number from MMDD". Wouldn't be similar to get the number of days from epoch? But basically, you are sayi

Re: [hibernate-dev] HSEARCH Java 8 Date Time

2015-08-05 Thread Sanne Grinovero
ot a whole number and you'd have to apply rounding which is timezone specific. By simply encoding the number in the above format, you'd encode today as the number "20150805". That's a whole number which avoids the timezone relativity and can be efficiently encoded in numeric fo

Re: [hibernate-dev] [Hibernate Search] Database back end worker

2015-08-05 Thread Flemming Harms
Hi Martin For this version the AbstractDatabaseHibernateSearchController is not able to process Lucene workers simultaneously. When we build it our initial requirement was only one node should process the workers at a time, but the “master” was floating. We use Quartz to get this type of functiona

[hibernate-dev] Fourth Candidate Release for ORM 5.0

2015-08-05 Thread Steve Ebersole
http://in.relation.to/2015/08/05/hibernate-orm-500-cr4-release/ Mainly changes in the defaults for some settings in prep for Final ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] [Hibernate Search] Database back end worker

2015-08-05 Thread Sanne Grinovero
Hi Flemming, welcome on this list! I waited a bit to reply myself, as you already know I like the proposal. Unfortunately many others are on holidays, so other feedback might be slow. Still I wouldn't let that slow you down and start the works for merging it; I already anticipated over chat that

[hibernate-dev] Preparing to release 4.3.11.Final

2015-08-05 Thread Gail Badner
Please don't push anything to 4.3 branch until I'm finished with the release. Thanks, Gail ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

[hibernate-dev] Finished with 4.3.11.Final release

2015-08-05 Thread Gail Badner
I will blog and send out announcements on Thursday. ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev