lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r734414 - /lucene/java/trunk/contrib/queries/src/java/org/apache/lucene/search/trie/TrieUtils.java
Date Wed, 14 Jan 2009 15:09:45 GMT
Author: uschindler
Date: Wed Jan 14 07:09:25 2009
New Revision: 734414

URL: http://svn.apache.org/viewvc?rev=734414&view=rev
Log:
Trie encoded fields do not need norms (as they are only used for filtering with TrieRangeFilter
or for sorting)

Modified:
    lucene/java/trunk/contrib/queries/src/java/org/apache/lucene/search/trie/TrieUtils.java

Modified: lucene/java/trunk/contrib/queries/src/java/org/apache/lucene/search/trie/TrieUtils.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/queries/src/java/org/apache/lucene/search/trie/TrieUtils.java?rev=734414&r1=734413&r2=734414&view=diff
==============================================================================
--- lucene/java/trunk/contrib/queries/src/java/org/apache/lucene/search/trie/TrieUtils.java
(original)
+++ lucene/java/trunk/contrib/queries/src/java/org/apache/lucene/search/trie/TrieUtils.java
Wed Jan 14 07:09:25 2009
@@ -301,7 +301,7 @@
     final Document ldoc, final String fieldname, final String val,
     final boolean index, final Field.Store store
   ) {
-    Field f=new Field(fieldname, val, store, index?Field.Index.NOT_ANALYZED:Field.Index.NO);
+    Field f=new Field(fieldname, val, store, index?Field.Index.NOT_ANALYZED_NO_NORMS:Field.Index.NO);
     if (index) {
       f.setOmitTf(true);
       ldoc.add(f);
@@ -313,7 +313,7 @@
           f=new Field(
             fieldname + LOWER_PRECISION_FIELD_NAME_SUFFIX,
             sb.append( (char)(TRIE_CODED_PADDING_START+i) ).append( val.substring(0,i) ).toString(),
-            Field.Store.NO, Field.Index.NOT_ANALYZED
+            Field.Store.NO, Field.Index.NOT_ANALYZED_NO_NORMS
           );
           f.setOmitTf(true);
           ldoc.add(f);



Mime
View raw message