I try the following code:
Field f = new Field("notindex","value",Store.YES,Index.NO);

when i search the index,i can not get the filed's value.
but i use this instead:(index but not analyzed)
Field f = new Field("notindex","value",Store.YES,Index.NOT_ANALYZED);
i get the  field's value.

So question is:

What is the purpose with this settings in Lucene,Store one filed's value,but not analyzed the index?
thanks


娄建文 Java工程师
公司:千品网(www.qianpin.com)
地址:北京市朝阳区安家楼路50号院A3楼
二维码

扫描该二维码,可以将电子名片迅速保存到手机 使用帮助