FileDocCategorySizeDatePackage
ConstantScoreQueryBuilder.javaAPI DocApache Lucene 2.0.0893Fri May 26 09:53:50 BST 2006org.apache.lucene.xmlparser.builders

ConstantScoreQueryBuilder

public class ConstantScoreQueryBuilder extends Object implements org.apache.lucene.xmlparser.QueryBuilder

Fields Summary
private org.apache.lucene.xmlparser.FilterBuilderFactory
filterFactory
Constructors Summary
public ConstantScoreQueryBuilder(org.apache.lucene.xmlparser.FilterBuilderFactory filterFactory)

		this.filterFactory=filterFactory;
	
Methods Summary
public org.apache.lucene.search.QuerygetQuery(org.w3c.dom.Element e)

 		Element filterElem=DOMUtils.getFirstChildOrFail(e);
  		Query q=new ConstantScoreQuery(filterFactory.getFilter(filterElem));

  		q.setBoost(DOMUtils.getAttribute(e,"boost",1.0f));

  		return q;