Searched defs:startOffset (Results 1 - 25 of 31) sorted by relevance

12

/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/analysis/tokenattributes/
H A DOffsetAttribute.java29 Note that the difference between endOffset() and startOffset() may not be
32 public int startOffset(); method in interface:OffsetAttribute
36 @see #startOffset() and #endOffset()*/
37 public void setOffset(int startOffset, int endOffset); argument
42 of the token in the source text is (endOffset - startOffset). */
H A DOffsetAttributeImpl.java28 private int startOffset; field in class:OffsetAttributeImpl
34 Note that the difference between endOffset() and startOffset() may not be
37 public int startOffset() { method in class:OffsetAttributeImpl
38 return startOffset;
43 @see #startOffset() and #endOffset()*/
44 public void setOffset(int startOffset, int endOffset) { argument
45 this.startOffset = startOffset;
52 of the token in the source text is (endOffset - startOffset). */
60 startOffset
[all...]
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/
H A DTermVectorOffsetInfo.java32 private int startOffset; field in class:TermVectorOffsetInfo
38 public TermVectorOffsetInfo(int startOffset, int endOffset) { argument
40 this.startOffset = startOffset;
61 return startOffset;
64 public void setStartOffset(int startOffset) { argument
65 this.startOffset = startOffset;
81 if (startOffset != termVectorOffsetInfo.startOffset) retur
[all...]
H A DDocInverterPerThread.java45 public void reinit(String stringValue, int startOffset, int endOffset) { argument
47 offsetAttribute.setOffset(startOffset, endOffset);
/lucene-3.6.0/lucene/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/
H A DWordSegmenter.java41 * @param startOffset start offset of sentence
44 public List<SegToken> segmentSentence(String sentence, int startOffset) { argument
54 convertSegToken(st, sentence, startOffset);
77 st.charArray = sentence.substring(st.startOffset, st.endOffset)
85 st.startOffset += sentenceStartOffset;
/lucene-3.6.0/lucene/contrib/analyzers/phonetic/src/java/org/apache/lucene/analysis/phonetic/
H A DBeiderMorseFilter.java58 private int startOffset; field in class:BeiderMorseFilter
91 offsetAtt.setOffset(startOffset, endOffset);
99 startOffset = offsetAtt.startOffset();
/lucene-3.6.0/lucene/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/
H A DSegToken.java37 public int startOffset; field in class:SegToken
70 this.startOffset = start;
88 result = prime * result + startOffset;
112 if (startOffset != other.startOffset)
/lucene-3.6.0/lucene/contrib/highlighter/src/java/org/apache/lucene/search/vectorhighlight/
H A DFieldFragList.java45 * @param startOffset start offset of the fragment
49 public void add( int startOffset, int endOffset, List<WeightedPhraseInfo> phraseInfoList ){ argument
50 fragInfos.add( new WeightedFragInfo( startOffset, endOffset, phraseInfoList ) );
66 int startOffset; field in class:FieldFragList.WeightedFragInfo
69 public WeightedFragInfo( int startOffset, int endOffset, List<WeightedPhraseInfo> phraseInfoList ){ argument
70 this.startOffset = startOffset;
89 return startOffset;
102 sb.append( ")/" ).append( totalBoost ).append( '(' ).append( startOffset ).append( ',' ).append( endOffset ).append( ')' );
H A DFieldPhraseList.java148 return termsOffsets.get( 0 ).startOffset;
179 int startOffset; field in class:FieldPhraseList.WeightedPhraseInfo.Toffs
181 public Toffs( int startOffset, int endOffset ){ argument
182 this.startOffset = startOffset;
189 return startOffset;
197 sb.append( '(' ).append( startOffset ).append( ',' ).append( endOffset ).append( ')' );
H A DFieldTermStack.java147 final int startOffset; field in class:FieldTermStack.TermInfo
151 TermInfo( String text, int startOffset, int endOffset, int position ){ argument
153 this.startOffset = startOffset;
159 public int getStartOffset(){ return startOffset; }
166 sb.append( text ).append( '(' ).append(startOffset).append( ',' ).append( endOffset ).append( ',' ).append( position ).append( ')' );
H A DBaseFragmentsBuilder.java134 final int s = fragInfo.startOffset;
146 .append( encoder.encodeText( src.substring( srcIndex, to.startOffset - s ) ) )
148 .append( encoder.encodeText( src.substring( to.startOffset - s, to.endOffset - s ) ) )
179 int startOffset, int endOffset, int[] modifiedStartOffset ){
192 modifiedStartOffset[0] = boundaryScanner.findStartOffset( buffer, startOffset );
198 int startOffset, int endOffset ){
205 return buffer.substring( startOffset, eo );
209 int startOffset, int endOffset ){
217 return buffer.substring( startOffset, eo );
178 getFragmentSourceMSO( StringBuilder buffer, int[] index, Field[] values, int startOffset, int endOffset, int[] modifiedStartOffset ) argument
197 getFragmentSource( StringBuilder buffer, int[] index, String[] values, int startOffset, int endOffset ) argument
208 getFragmentSource( StringBuilder buffer, int[] index, Field[] values, int startOffset, int endOffset ) argument
/lucene-3.6.0/lucene/contrib/highlighter/src/java/org/apache/lucene/search/highlight/
H A DTokenGroup.java35 int startOffset = 0; field in class:TokenGroup
50 int termStartOffset = offsetAtt.startOffset();
53 startOffset = matchStartOffset = termStartOffset;
57 startOffset = Math.min(startOffset, termStartOffset);
61 matchStartOffset = offsetAtt.startOffset();
79 return offsetAtt.startOffset() >= endOffset;
123 return startOffset;
/lucene-3.6.0/lucene/contrib/highlighter/src/test/org/apache/lucene/search/vectorhighlight/
H A DIndexTimeSynonymTest.java286 public static Token t( String text, int startOffset, int endOffset ){ argument
287 return t( text, startOffset, endOffset, 1 );
290 public static Token t( String text, int startOffset, int endOffset, int positionIncrement ){ argument
291 Token token = new Token( text, startOffset, endOffset );
/lucene-3.6.0/lucene/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/
H A DInstantiatedTerm.java111 * @param startOffset associated documents index start offset
114 public int seekCeilingDocumentInformationIndex(int target, int startOffset) { argument
115 return seekCeilingDocumentInformationIndex(target, startOffset, getAssociatedDocuments().length);
123 * @param startOffset associated documents index start offset
127 public int seekCeilingDocumentInformationIndex(int target, int startOffset, int endPosition) { argument
129 int pos = binarySearchAssociatedDocuments(target, startOffset, endPosition - startOffset);
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/compound/
H A DCompoundWordTokenFilterBase.java183 offsetAtt.setOffset(token.startOffset, token.endOffset);
222 public final int startOffset, endOffset; field in class:CompoundWordTokenFilterBase.CompoundToken
229 int startOff = CompoundWordTokenFilterBase.this.offsetAtt.startOffset();
235 this.startOffset = startOff;
239 this.startOffset = newStart;
/lucene-3.6.0/lucene/contrib/analyzers/common/src/test/org/apache/lucene/analysis/shingle/
H A DTestShingleMatrixFilter.java166 // System.out.println("assertNext(ts, \"" + token.term() + "\", " + token.getPositionIncrement() + ", " + (token.getPayload() == null ? "1.0" : PayloadHelper.decodeFloat(token.getPayload().getData())) + "f, " + token.startOffset() + ", " + token.endOffset() + ");");
189 // System.out.println("assertNext(ts, \"" + token.term() + "\", " + token.getPositionIncrement() + ", " + (token.getPayload() == null ? "1.0" : PayloadHelper.decodeFloat(token.getPayload().getData())) + "f, " + token.startOffset() + ", " + token.endOffset() + ");");
237 // System.out.println("assertNext(ts, \"" + token.term() + "\", " + token.getPositionIncrement() + ", " + (token.getPayload() == null ? "1.0" : PayloadHelper.decodeFloat(token.getPayload().getData())) + "f, " + token.startOffset() + ", " + token.endOffset() + ");");
306 // System.out.println("assertNext(ts, \"" + token.term() + "\", " + token.getPositionIncrement() + ", " + (token.getPayload() == null ? "1.0" : PayloadHelper.decodeFloat(token.getPayload().getData())) + "f, " + token.startOffset() + ", " + token.endOffset() + ");");
369 // System.out.println("assertNext(ts, \"" + token.term() + "\", " + token.getPositionIncrement() + ", " + (token.getPayload() == null ? "1.0" : PayloadHelper.decodeFloat(token.getPayload().getData())) + "f, " + token.startOffset() + ", " + token.endOffset() + ");");
417 private Token tokenFactory(String text, int posIncr, int startOffset, int endOffset) { argument
418 Token token = new Token(startOffset, endOffset);
429 private Token tokenFactory(String text, int posIncr, float weight, int startOffset, int endOffset) { argument
430 Token token = new Token(startOffset, endOffset);
437 private Token tokenFactory(String text, int posIncr, float weight, int startOffset, in argument
455 assertNext(TokenStream ts, String text, int positionIncrement, float boost, int startOffset, int endOffset) argument
469 assertNext(TokenStream ts, String text, int startOffset, int endOffset) argument
[all...]
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/analysis/
H A DToken.java82 return reusableToken.reinit(string, startOffset, endOffset[, type]);
87 return reusableToken.reinit(string, 0, string.length(), startOffset, endOffset[, type]);
93 return reusableToken.reinit(buffer, 0, buffer.length, startOffset, endOffset[, type]);
98 return reusableToken.reinit(buffer, start, end - start, startOffset, endOffset[, type]);
103 return reusableToken.reinit(source.buffer(), 0, source.length(), source.startOffset(), source.endOffset()[, source.type()]);
111 <li>The startOffset and endOffset represent the start and offset in the source text, so be careful in adjusting them.</li>
127 private int startOffset,endOffset; field in class:Token
142 startOffset = start;
152 startOffset = start;
165 startOffset
280 public final int startOffset() { method in class:Token
305 setOffset(int startOffset, int endOffset) argument
[all...]
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/index/
H A DTestPayloads.java443 private int startOffset; field in class:TestPayloads.PayloadFilter
451 this.startOffset = offset;
475 this.offset = startOffset;
H A DTestTermVectorsReader.java52 int startOffset; field in class:TestTermVectorsReader.TestToken
84 token.startOffset = offsets[i][j].getStartOffset();
146 offsetAtt.setOffset(testToken.startOffset, testToken.endOffset);
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/search/
H A DTestNumericRangeQuery32.java42 private static final int startOffset = - 1 << 15; field in class:TestNumericRangeQuery32
77 int val=distance*l+startOffset;
117 int lower=(distance*3/2)+startOffset, upper=lower + count*distance + (distance/3);
145 assertEquals("First doc"+type, 2*distance+startOffset, Integer.parseInt(doc.get(field)) );
147 assertEquals("Last doc"+type, (1+count)*distance+startOffset, Integer.parseInt(doc.get(field)) );
191 int upper=(count-1)*distance + (distance/3) + startOffset;
198 assertEquals("First doc", startOffset, Integer.parseInt(doc.get(field)) );
200 assertEquals("Last doc", (count-1)*distance+startOffset, Integer.parseInt(doc.get(field)) );
208 assertEquals("First doc", startOffset, Integer.parseInt(doc.get(field)) );
210 assertEquals("Last doc", (count-1)*distance+startOffset, Intege
[all...]
H A DTestNumericRangeQuery64.java42 private static final long startOffset = - 1L << 31; field in class:TestNumericRangeQuery64
79 long val=distance*l+startOffset;
121 long lower=(distance*3/2)+startOffset, upper=lower + count*distance + (distance/3);
149 assertEquals("First doc"+type, 2*distance+startOffset, Long.parseLong(doc.get(field)) );
151 assertEquals("Last doc"+type, (1+count)*distance+startOffset, Long.parseLong(doc.get(field)) );
200 long upper=(count-1)*distance + (distance/3) + startOffset;
207 assertEquals("First doc", startOffset, Long.parseLong(doc.get(field)) );
209 assertEquals("Last doc", (count-1)*distance+startOffset, Long.parseLong(doc.get(field)) );
217 assertEquals("First doc", startOffset, Long.parseLong(doc.get(field)) );
219 assertEquals("Last doc", (count-1)*distance+startOffset, Lon
[all...]
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/index/
H A DTestPayloads.java443 private int startOffset; field in class:TestPayloads.PayloadFilter
451 this.startOffset = offset;
475 this.offset = startOffset;
H A DTestTermVectorsReader.java52 int startOffset; field in class:TestTermVectorsReader.TestToken
84 token.startOffset = offsets[i][j].getStartOffset();
145 offsetAtt.setOffset(testToken.startOffset, testToken.endOffset);
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/search/
H A DTestNumericRangeQuery32.java42 private static final int startOffset = - 1 << 15; field in class:TestNumericRangeQuery32
77 int val=distance*l+startOffset;
117 int lower=(distance*3/2)+startOffset, upper=lower + count*distance + (distance/3);
145 assertEquals("First doc"+type, 2*distance+startOffset, Integer.parseInt(doc.get(field)) );
147 assertEquals("Last doc"+type, (1+count)*distance+startOffset, Integer.parseInt(doc.get(field)) );
191 int upper=(count-1)*distance + (distance/3) + startOffset;
198 assertEquals("First doc", startOffset, Integer.parseInt(doc.get(field)) );
200 assertEquals("Last doc", (count-1)*distance+startOffset, Integer.parseInt(doc.get(field)) );
208 assertEquals("First doc", startOffset, Integer.parseInt(doc.get(field)) );
210 assertEquals("Last doc", (count-1)*distance+startOffset, Intege
[all...]
H A DTestNumericRangeQuery64.java42 private static final long startOffset = - 1L << 31; field in class:TestNumericRangeQuery64
79 long val=distance*l+startOffset;
121 long lower=(distance*3/2)+startOffset, upper=lower + count*distance + (distance/3);
149 assertEquals("First doc"+type, 2*distance+startOffset, Long.parseLong(doc.get(field)) );
151 assertEquals("Last doc"+type, (1+count)*distance+startOffset, Long.parseLong(doc.get(field)) );
200 long upper=(count-1)*distance + (distance/3) + startOffset;
207 assertEquals("First doc", startOffset, Long.parseLong(doc.get(field)) );
209 assertEquals("Last doc", (count-1)*distance+startOffset, Long.parseLong(doc.get(field)) );
217 assertEquals("First doc", startOffset, Long.parseLong(doc.get(field)) );
219 assertEquals("Last doc", (count-1)*distance+startOffset, Lon
[all...]

Completed in 293 milliseconds

12