On Tue, Jan 23, 2007, Yonik Seeley wrote about "Re: NO_NORMS and TOKENIZED?":
> >When adding a field to a document, Field.Index gives me four options: NO,
> >NO_NORMS, TOKENIZED and UN_TOKENIZED.
>..
> >What can I do if I want to index the field's value *with* an Analyzer, but
> >still disable the storing of norms (because the field length should not be
> >considered in scoring)?
>...
> I hadn't added a Field.Index option at all, and Doug suggested
> NO_NORMS, probably because it's mostly harmless to new users who might
> disable length normalization without realizing the implications.
>
> For other fields, I prefer use of setOmitNorms()
Thanks! I wasn't aware of this method. It's exactly what I needed.
I never thought of trying to modify the Field after construction...
Perhaps the NO_NORMS javadoc should refer to setOmitNorms()? (Or I should
learn to search the documentation better :-)).
--
Nadav Har'El | Tuesday, Jan 23 2007, 4 Shevat 5767
IBM Haifa Research Lab |-----------------------------------------
|Today is the tomorrow you worried about
http://nadav.harel.org.il |yesterday, and now you know why.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]