FileDocCategorySizeDatePackage
WeightedTerm.javaAPI DocApache Lucene 1.91409Mon Feb 20 09:18:22 GMT 2006org.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;