lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 娄建文 <tom.grade1...@163.com>
Subject What's the purpose:Lucene document field index but not store?
Date Sat, 29 Sep 2012 05:52:32 GMT


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工程师
手机:13261993265
公司:千品网(www.qianpin.com)
地址:北京市朝阳区安家楼路50号院A3楼
|

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

|
Mime
  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message