The purpose of [ Store.YES, Index.NO ] is to allow one to associate information with a document without the waste of indexing that additional information in situations where that information will never be used as serach criteria. For example, in one of my applications I index the content of a properiatary library. The records in that library are always accessed by a positional index value. As these positional index values are of no use to the end-user of the application, but are needed internally to retrieve the original library document, I associate the positional index with the Lucene document as [ Store.YES, Index.NO ]. - Neal
From: 娄建文 [mailto:tom.grade1...@163.com] Sent: Monday, October 01, 2012 6:34 AM To: general@lucene.apache.org Subject: Re:Re: 回复:Re:回复:What's_the_purpose:Lucene_document_field_index_but_not_store? The question is that I used: Field f = new Field("notindex","value",Store.YES,Index.NO); and then use luke to view those index,and no field value can is there,but the field's value is stored just not index_analyzed when construct the field. Hope i am clear my question. thanks At 2012-10-01 15:34:44,Upayavira <u...@odoko.co.uk> wrote: >Did that answer your question? :-) > >In case it didn't, *analysis* breaks down your field into multiple >tokens. If you don't analyse, (i.e. Index.NOT_ANALYZED) you index your >field as a single token. With Index.NO you don't even index, you just >store the field so its value can be returned in search results. > >But maybe that has all been said already :-) > >Upayavira > >On Sat, Sep 29, 2012, at 08:27 AM, sdr...@sina.com wrote: >> 没有被解析的字段值,被保存,作为单一的Term。 >> 所以使用TermQuery,以值构造new Term。 >> >> >> ----- 原始邮件 ----- >> 发件人:娄建文 <tom.grade1...@163.com> >> 收件人:general@lucene.apache.org, sdr...@sina.com >> 主题:Re:回复:What's_the_purpose:Lucene_document_field_index_but_not_store? >> 日期:2012年09月29日 15点24分 >>