FileDocCategorySizeDatePackage
WeightedTerm.javaAPI DocApache Lucene 2.1.01592Wed Feb 14 10:46:22 GMT 2007org.apache.lucene.search.highlight

WeightedTerm

public class WeightedTerm extends Object
Lightweight class to hold term and a weight value used for scoring this term
author
Mark Harwood

Fields Summary
float
weight
String
term
Constructors Summary
public WeightedTerm(float weight, String term)

		this.weight=weight;
		this.term=term;
	
Methods Summary
public java.lang.StringgetTerm()

return
the term value (stemmed)

		return term;
	
public floatgetWeight()

return
the weight associated with this term

		return weight;
	
public voidsetTerm(java.lang.String term)

param
term the term value (stemmed)

		this.term = term;
	
public voidsetWeight(float weight)

param
weight the weight associated with this term

		this.weight = weight;