You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Michael McCandless <lu...@mikemccandless.com> on 2009/04/07 16:52:19 UTC

Re: omitNorms, omitTermFreqAndPositions in combination with stored-only fields

That sounds like a real bug to me.

If the field is not indexed, then the norm/omitTFAP should be ignored.

Can you open a Jira/patch?  Thanks, and good catch!

Mike

On Tue, Apr 7, 2009 at 10:46 AM, Uwe Schindler <uw...@thetaphi.de> wrote:
> Hi,
>
> during updating my internal components to the new TrieAPI, I have seen the
> following:
>
> I index a lot of numeric fields with trie encoding omitting norms and term
> frequency. This works great. Luke shows that both is omitted.
>
> As I sometimes also want to have the components of the field stored and want
> to use the same field name for it. So I add additionally the field again to
> the document, but stored only (as the Field c'tor using a TokenStream cannot
> additionally store the field). As it is stored only, I thought, that I can
> left out explicit setting of omitNorms and omitTermFreqAndPositions. After
> adding the stored-only-without-omits field, Luke shows all fields with norms
> enabled.
>
> In my opinion, this is not intuitive, in my opinion, o.a.l.document.Field
> should switch both omit options on when storing fields only. Or the internal
> FieldInfo.update(boolean isIndexed, boolean storeTermVector, boolean
> storePositionWithTermVector, boolean storeOffsetWithTermVector, boolean
> omitNorms, boolean storePayloads, boolean omitTermFreqAndPositions) should
> only change the omit options, if the isIndexed parameter (not
> this.isIndexed) is also true.
>
> Is this a bug or a feature? Should I open an JIRA issue? I think the above
> would fix it.
>
> -----
> Uwe Schindler
> H.-H.-Meier-Allee 63, D-28213 Bremen
> http://www.thetaphi.de
> eMail: uwe@thetaphi.de
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org