/lucene-3.6.0/lucene/contrib/highlighter/src/java/org/apache/lucene/search/highlight/ |
H A D | WeightedSpanTerm.java | 53 * Checks to see if this term is valid at <code>position</code>. 55 * @param position 57 * @return true iff this term is a hit at this position 59 public boolean checkPosition(int position) { argument 69 if (((position >= posSpan.start) && (position <= posSpan.end))) {
|
H A D | SimpleSpanFragmenter.java | 37 private int position = -1; field in class:SimpleSpanFragmenter 65 position += posIncAtt.getPositionIncrement(); 67 if (waitForPos == position) { 79 if (positionSpans.get(i).start == position) { 101 position = -1;
|
H A D | QueryScorer.java | 47 private int position = -1; field in class:QueryScorer 148 position += posIncAtt.getPositionIncrement(); 159 !weightedSpanTerm.checkPosition(position)) { 178 position = -1;
|
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/ |
H A D | FormatPostingsPositionsConsumer.java | 25 /** Add a new position & payload. If payloadLength > 0 27 abstract void addPosition(int position, byte[] payload, int payloadOffset, int payloadLength) throws IOException; argument
|
H A D | FieldInvertState.java | 22 * This class tracks the number and position / offset parameters of terms 29 int position; field in class:FieldInvertState 41 public FieldInvertState(int position, int length, int numOverlap, int offset, float boost) { argument 42 this.position = position; 54 position = 0; 65 * Get the last processed term position. 66 * @return the position 69 return position;
|
H A D | FormatPostingsPositionsWriter.java | 52 /** Add a new position & payload */ 54 void addPosition(int position, byte[] payload, int payloadOffset, int payloadLength) throws IOException { argument 58 final int delta = position - lastPosition; 59 lastPosition = position;
|
H A D | PositionBasedTermVectorMapper.java | 25 * For each Field, store position by position information. It ignores frequency information 111 * @return A map between field names and a Map. The sub-Map key is the position as the integer, the value is {@link org.apache.lucene.index.PositionBasedTermVectorMapper.TVPositionInfo}. 118 * Container for a term at a position 121 private int position; field in class:PositionBasedTermVectorMapper.TVPositionInfo 128 public TVPositionInfo(int position, boolean storeOffsets) { argument 129 this.position = position; 146 * @return The position of the term 149 return position; [all...] |
H A D | SegmentTermEnum.java | 27 long position = -1; field in class:SegmentTermEnum 116 position = p; 126 if (position++ >= size - 1) { 164 * and position will be -1; caller must detect this. */
|
H A D | SegmentTermPositions.java | 29 private int position; field in class:SegmentTermPositions 33 // indicates whether the payload of the current position has 72 return position += readDeltaPosition(); 79 // the position delta is shifted one bit to the left. 105 position = 0; // reset position 180 throw new IOException("Either no payload exists at this term position or an attempt was made to load it more than once.");
|
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/position/ |
H A D | PositionFilter.java | 1 package org.apache.lucene.analysis.position; 41 * Constructs a PositionFilter that assigns a position increment of zero to 51 * Constructs a PositionFilter that assigns the given position increment to 55 * @param positionIncrement position increment to assign to all but the first
|
/lucene-3.6.0/lucene/contrib/highlighter/src/java/org/apache/lucene/search/vectorhighlight/ |
H A D | FieldTermStack.java | 109 // sort by position 149 final int position; field in class:FieldTermStack.TermInfo 151 TermInfo( String text, int startOffset, int endOffset, int position ){ 155 this.position = position; 161 public int getPosition(){ return position; } 166 sb.append( text ).append( '(' ).append(startOffset).append( ',' ).append( endOffset ).append( ',' ).append( position ).append( ')' ); 171 return ( this.position - o.position );
|
/lucene-3.6.0/lucene/contrib/icu/src/java/org/apache/lucene/analysis/icu/segmentation/ |
H A D | CharArrayIterator.java | 104 public char setIndex(int position) { argument 105 if (position < getBeginIndex() || position > getEndIndex()) 106 throw new IllegalArgumentException("Illegal Position: " + position); 107 index = start + position;
|
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/ |
H A D | PhrasePositions.java | 28 int position; // position in doc field in class:PhrasePositions 30 int offset; // position in phrase 52 position = 0; 63 position = 0; 75 * <code>position</code> as <code>location - offset</code>, so that a 77 * have exactly the same <code>position</code>. 81 position = tp.nextPosition() - offset; 90 String s = "d:"+doc+" o:"+offset+" p:"+position+" c:"+count;
|
H A D | MultiPhraseQuery.java | 58 /** Add a single term at the next position in the phrase. 63 /** Add multiple terms at the next position in the phrase. Any of the terms 69 int position = 0; 71 position = positions.get(positions.size()-1).intValue() + 1; 73 add(terms, position); 77 * Allows to specify the relative position of terms within the phrase. 81 * @param position 83 public void add(Term[] terms, int position) { argument 96 positions.add(Integer.valueOf(position)); 333 int position [all...] |
H A D | PhraseQuery.java | 52 moves of terms in the query phrase out of position. For example, to switch 67 * The relative position of the term is the one immediately after the last term added. 70 int position = 0; 72 position = positions.get(positions.size()-1).intValue() + 1; 74 add(term, position); 79 * The relative position of the term within the phrase is specified explicitly. 80 * This allows e.g. phrases with more than one term at the same position 84 * @param position 86 public void add(Term term, int position) { argument 93 positions.add(Integer.valueOf(position)); 125 final int position; field in class:PhraseQuery.PostingsAndFreq 129 PostingsAndFreq(TermPositions postings, int docFreq, int position, Term... terms) argument [all...] |
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/spans/ |
H A D | TermSpans.java | 36 protected int position; field in class:TermSpans 57 position = positions.nextPosition(); 73 position = positions.nextPosition(); 86 return position; 91 return position + 1; 111 (doc == -1 ? "START" : (doc == Integer.MAX_VALUE) ? "END" : doc + "-" + position);
|
/lucene-3.6.0/lucene/contrib/analyzers/common/src/test/org/apache/lucene/analysis/position/ |
H A D | PositionFilterTest.java | 1 package org.apache.lucene.analysis.position; 125 // Make sure that the reset filter provides correct position increments
|
/lucene-3.6.0/solr/core/src/test/org/apache/solr/handler/ |
H A D | AnalysisRequestHandlerTestBase.java | 40 assertEquals(new Integer(info.getPosition()), token.get("position")); 61 private int position; field in class:AnalysisRequestHandlerTestBase.TokenInfo 71 int position, 81 this.position = position; 112 return position; 65 TokenInfo( String text, String rawText, String type, int start, int end, int position, int[] positionHistory, String payload, boolean match) argument
|
/lucene-3.6.0/lucene/contrib/icu/src/java/org/apache/lucene/analysis/icu/ |
H A D | ICUTransformFilter.java | 62 // Reusable position object 63 private final Transliterator.Position position = new Transliterator.Position(); field in class:ICUTransformFilter 101 position.start = 0; 102 position.limit = length; 103 position.contextStart = 0; 104 position.contextLimit = length; 106 transform.filteredTransliterate(replaceableAttribute, position, false);
|
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/store/ |
H A D | SimpleFSDirectory.java | 67 long position; field in class:SimpleFSDirectory.SimpleFSIndexInput.Descriptor 107 long position = getFilePointer(); 108 if (position != file.position) { 109 file.seek(position); 110 file.position = position; 127 file.position += i; 154 protected void seekInternal(long position) { argument
|
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/util/ |
H A D | CharArrayIterator.java | 108 public char setIndex(int position) { argument 109 if (position < getBeginIndex() || position > getEndIndex()) 110 throw new IllegalArgumentException("Illegal Position: " + position); 111 index = start + position;
|
/lucene-3.6.0/lucene/contrib/analyzers/kuromoji/src/java/org/apache/lucene/analysis/ja/ |
H A D | Token.java | 35 private final int position; field in class:Token 40 public Token(int wordId, char[] surfaceForm, int offset, int length, Type type, int position, Dictionary dictionary) { argument 46 this.position = position; 53 return "Token(\"" + new String(surfaceForm, offset, length) + "\" pos=" + position + " type=" + type + " wordId=" + wordId + " leftID=" + dictionary.getLeftId(wordId) + ")"; 152 * @return position of token 155 return position; 159 * Set the position length (in tokens) of this token. For normal 169 * @return position length of token
|
/lucene-3.6.0/lucene/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/ |
H A D | LineDocSource.java | 146 private void setDocDataField(DocData docData, int position, String text) { argument 147 switch(posToF[position]) { 166 p.setProperty(header[position], text);
|
/lucene-3.6.0/solr/solrj/src/java/org/apache/solr/client/solrj/response/ |
H A D | AnalysisResponseBase.java | 45 * <int name="position">1</str> 54 * <int name="position">1</str> 89 * <int name="position">1</str> 104 int position = (Integer) tokenNL.get("position"); 106 return new TokenInfo(text, rawText, type, start, end, position, (match == null ? false : match)); 159 private final int position; field in class:AnalysisResponseBase.TokenInfo 171 * @param start The start position of the token in the original text where it was extracted from. 172 * @param end The end position of the token in the original text where it was extracted from. 173 * @param position Th 176 TokenInfo(String text, String rawText, String type, int start, int end, int position, boolean match) argument [all...] |
/lucene-3.6.0/lucene/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/ |
H A D | InstantiatedIndexWriter.java | 315 // todo optimize, this should be cached and updated to array in batches rather than appending the array once for every position! 394 // todo optimize, only update from start position 605 if (fieldSetting.position > 0) { 607 fieldSetting.position += analyzer.getPositionIncrementGap(fieldSetting.fieldName); 619 fieldSetting.position += (token.getPositionIncrement() - 1); 620 termDocumentInformationFactory.termPositions.add(fieldSetting.position++); 708 int position = 0; field in class:InstantiatedIndexWriter.FieldSetting
|