org.apache.lucene.search.highlight

Class WeightedTerm


public class WeightedTerm
extends Object

Lightweight class to hold term and a weight value used for scoring this term
Author:
Mark Harwood

Constructor Summary

WeightedTerm(float weight, String term)

Method Summary

String
getTerm()
float
getWeight()
void
setTerm(String term)
void
setWeight(float weight)

Constructor Details

WeightedTerm

public WeightedTerm(float weight,
                    String term)

Method Details

getTerm

public String getTerm()
Returns:
the term value (stemmed)

getWeight

public float getWeight()
Returns:
the weight associated with this term

setTerm

public void setTerm(String term)
Parameters:
term - the term value (stemmed)

setWeight

public void setWeight(float weight)
Parameters:
weight - the weight associated with this term

Copyright © 2000-2006 Apache Software Foundation. All Rights Reserved.