`
wjboy49
  • 浏览: 276064 次
  • 性别: Icon_minigender_1
  • 来自: 湖南岳阳
社区版块
存档分类
最新评论

lucene Field部分参数设置含义

阅读更多

<script type="text/javascript"> document.body.oncopy = function() { if (window.clipboardData) { setTimeout(function() { var text = clipboardData.getData(&quot;text&quot;); if (text &amp;&amp; text.length&gt;300) { text = text + &quot;\r\n\n本文来自CSDN博客,转载请标明出处:&quot; + location.href; clipboardData.setData(&quot;text&quot;, text); } }, 100); } } </script><script type="text/javascript">function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&amp;u='+escape(d.location.href)+'&amp;c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();}</script>          /**
         * Field.Store.COMPRESS:压缩保存,用于长文本或二进制数据
         * Field.Store.YES:保存
         * Field.Store.NO:不保存
         *
         * Field.Index.NO:不建立索引
         * Field.Index.TOKENIZED:分词,建索引
         * Field.Index.UN_TOKENIZED:不分词,建索引
         * Field.Index.NO_NORMS:不分词,建索引.但是Field的值不像通常那样被保存,而是只取一个byte,这样节约存储空间
         *
         * Field.TermVector.NO:不保存term vectors
         * Field.TermVector.YES:保存term vectors
         * Field.TermVector.WITH_POSITIONS:保存term vectors.(保存值和token位置信息)
         * Field.TermVector.WITH_OFFSETS:保存term vectors.(保存值和Token的offset)
         * Field.TermVector.WITH_POSITIONS_OFFSETS:保存term vectors.(保存值和token位置信息和Token的offset)
         */

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics