Permalink
Browse files

bug fix: ZOIE-21

  • Loading branch information...
javasoze committed Feb 26, 2010
1 parent 4377467 commit 7107f2d66d4f860113cb7ca4e9ad32e35419891c
Showing with 4 additions and 3 deletions.
  1. +4 −3 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.