Re: [hibernate-dev] [HSEARCH] Proposal to change the default value of Field#norms()

2012-05-09 Thread Sanne Grinovero
On 9 May 2012 21:04, Andrej Golovnin wrote: > Hi Emmanuel, > >> Can you open a JIRA issue to clarify this in >> http://docs.jboss.org/hibernate/search/4.1/reference/en-US/html_single/#basic-mapping >> ? >> Even better, can you propose the change as a GitHub pull request? :) > > Sure. :-) > >>> >

Re: [hibernate-dev] [HSEARCH] Proposal to change the default value of Field#norms()

2012-05-09 Thread Andrej Golovnin
Hi Emmanuel, > Can you open a JIRA issue to clarify this in > http://docs.jboss.org/hibernate/search/4.1/reference/en-US/html_single/#basic-mapping > ? > Even better, can you propose the change as a GitHub pull request? :) Sure. :-) >> >> @Field(boost=@Boost(1.2f), norms = Norms.NO) >> privat

Re: [hibernate-dev] [HSEARCH] Proposal to change the default value of Field#norms()

2012-05-09 Thread Emmanuel Bernard
On 9 mai 2012, at 00:43, Andrej Golovnin wrote: > Hi Hardy, > >> It depends. Maybe you want to boost any of these fields ad index time. > > OK, what about the document id? It is indexed with NOT_ANALYZED_NO_NORMS. > As far as I understand (please correct me if I'm wrong) to boost fields at > i

Re: [hibernate-dev] [HSEARCH] Proposal to change the default value of Field#norms()

2012-05-08 Thread Andrej Golovnin
Hi Sanne, > Proposal for next versions: allow @Stereotype - like user annotations? > We would let the user define custom annotations to stack/combine > multiple framework annotations, possibly centralizing what the > "default" is for your app and reduce the amount of code people have to > pile on

Re: [hibernate-dev] [HSEARCH] Proposal to change the default value of Field#norms()

2012-05-08 Thread Andrej Golovnin
Hi Hardy, > It depends. Maybe you want to boost any of these fields ad index time. OK, what about the document id? It is indexed with NOT_ANALYZED_NO_NORMS. As far as I understand (please correct me if I'm wrong) to boost fields at index time norms must be enabled for those fields. And because H

Re: [hibernate-dev] [HSEARCH] Proposal to change the default value of Field#norms()

2012-05-08 Thread Hardy Ferentschik
> Proposal for next versions: allow @Stereotype - like user annotations? > We would let the user define custom annotations to stack/combine > multiple framework annotations, possibly centralizing what the > "default" is for your app and reduce the amount of code people have to > pile on each gette

Re: [hibernate-dev] [HSEARCH] Proposal to change the default value of Field#norms()

2012-05-08 Thread Guillaume Smet
On Tue, May 8, 2012 at 12:27 PM, Sanne Grinovero wrote: > Proposal for next versions: allow @Stereotype - like user annotations? > We would let the user define custom annotations to stack/combine > multiple framework annotations, possibly centralizing what the > "default" is for your app and reduc

Re: [hibernate-dev] [HSEARCH] Proposal to change the default value of Field#norms()

2012-05-08 Thread Sanne Grinovero
On 8 May 2012 10:43, Guillaume Smet wrote: > Hi, > > On Tue, May 8, 2012 at 10:20 AM, Hardy Ferentschik > wrote: >>> Sanne also suggested an alternative solution. We may introduce a new global >>> option which would define the default value for Field#norms(). The default >>> value of this option

Re: [hibernate-dev] [HSEARCH] Proposal to change the default value of Field#norms()

2012-05-08 Thread Guillaume Smet
Hi, On Tue, May 8, 2012 at 10:20 AM, Hardy Ferentschik wrote: >> Sanne also suggested an alternative solution. We may introduce a new global >> option which would define the default value for Field#norms(). The default >> value of this option would be obviously YES. Users like me could change it

Re: [hibernate-dev] [HSEARCH] Proposal to change the default value of Field#norms()

2012-05-08 Thread Hardy Ferentschik
On May 7, 2012, at 11:47 PM, Andrej Golovnin wrote: > the default value of norms() in the Field annotation is defined to YES. > I doubt it is always needed, e.g. if you have an Enum field, do you really > need norms for it? The same applies to long/int, boolean, date, OID fields > and very short

[hibernate-dev] [HSEARCH] Proposal to change the default value of Field#norms()

2012-05-07 Thread Andrej Golovnin
Hi all, the default value of norms() in the Field annotation is defined to YES. I doubt it is always needed, e.g. if you have an Enum field, do you really need norms for it? The same applies to long/int, boolean, date, OID fields and very short fields like a code of the country. I have already a