Skip to content
Browse files

bug fix: ZOIE-21

  • Loading branch information...
1 parent 4377467 commit 7107f2d66d4f860113cb7ca4e9ad32e35419891c @javasoze javasoze committed Feb 25, 2010
Showing with 4 additions and 3 deletions.
  1. +4 −3 java/proj/zoie/api/ZoieSegmentReader.java
View
7 java/proj/zoie/api/ZoieSegmentReader.java
@@ -83,9 +83,10 @@ public boolean incrementToken() throws IOException {
}
}
- public static void fillDocumentID(Document doc,long id)
- {
- doc.add(new Field(ZoieSegmentReader.UID_TERM.field(), new UIDTokenStream(id)));
+ public static void fillDocumentID(Document doc,long id){
+ Field uidField = new Field(ZoieSegmentReader.UID_TERM.field(), new UIDTokenStream(id));
+ uidField.setOmitNorms(true);
+ doc.add(uidField);
}
public ZoieSegmentReader(IndexReader in, IndexReaderDecorator<R> decorator)

0 comments on commit 7107f2d

Please sign in to comment.
Something went wrong with that request. Please try again.