Skip to content

Commit

Permalink
2013.8.07 version 0.18.1-beta
Browse files Browse the repository at this point in the history
Signed-off-by: muyannian <[email protected]>
  • Loading branch information
muyannian committed Aug 7, 2013
1 parent 907a43e commit 3b05bd4
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public int getIndexOffset(Term term, BytesRef termBytesRef) throws IOException {
IndexInput tii= (IndexInput)this.tiiInput.clone();
IndexInput qtii=(IndexInput)this.quickTii.clone();
int lo = 0;
int hi = termInfoArr.length;
int hi = termInfoArr.length-1;
while (hi >= lo) {
int mid = (lo + hi) >>> 1;
int delta = compareTo(term, termBytesRef, mid,tii, qtii,new BytesRef());
Expand Down Expand Up @@ -125,7 +125,13 @@ private int compareTo(Term term, BytesRef termBytesRef, int termIndex, IndexInpu
TiiInfo ti=this.getTiiInfo(termIndex, tiiInput, quickTii);
return term.compareTo(ti.tm);
}

// output.writeInt(ti.docFreq); // write doc freq
// output.writeLong(ti.freqPointer); // write pointers
// output.writeLong(ti.proxPointer);
// output.writeInt(ti.skipOffset);
// output.writeLong(other.output.getFilePointer());
// output.writeLong(this.outputQuickTii.getFilePointer());
// this.writeTermTii(fieldNumber, termBytes, termBytesLength);
private TiiInfo getTiiInfo(int termIndex, IndexInput tiiInput, IndexInput quickTii) throws IOException {
TiiInfo ti=null;
synchronized (this.termInfoArr) {
Expand Down

0 comments on commit 3b05bd4

Please sign in to comment.