org.apache.lucene.search.highlight
Class WeightedSpanTerm
java.lang.Object
   org.apache.lucene.search.highlight.WeightedTerm
org.apache.lucene.search.highlight.WeightedTerm
       org.apache.lucene.search.highlight.WeightedSpanTerm
org.apache.lucene.search.highlight.WeightedSpanTerm
- public class WeightedSpanTerm 
- extends WeightedTerm
Lightweight class to hold term, weight, and positions used for scoring this
 term.
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
WeightedSpanTerm
public WeightedSpanTerm(float weight,
                        String term)
- Parameters:
- weight-
- term-
WeightedSpanTerm
public WeightedSpanTerm(float weight,
                        String term,
                        boolean positionSensitive)
- Parameters:
- weight-
- term-
- positionSensitive-
checkPosition
public boolean checkPosition(int position)
- Checks to see if this term is valid at position.
 
- 
- Parameters:
- position- to check against valid term postions
- Returns:
- true iff this term is a hit at this position
 
addPositionSpans
public void addPositionSpans(List positionSpans)
- 
 
isPositionSensitive
public boolean isPositionSensitive()
- 
 
setPositionSensitive
public void setPositionSensitive(boolean positionSensitive)
- 
 
getPositionSpans
public List getPositionSpans()
- 
 
Copyright © 2000-2010 Apache Software Foundation.  All Rights Reserved.