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

SpanTermBuilder

public class SpanTermBuilder extends SpanBuilderBase

Fields Summary
Constructors Summary
Methods Summary
public org.apache.lucene.search.spans.SpanQuerygetSpanQuery(org.w3c.dom.Element e)

 		String fieldName=DOMUtils.getAttributeWithInheritanceOrFail(e,"fieldName");
 		String value=DOMUtils.getNonBlankTextOrFail(e);
  		SpanTermQuery stq = new SpanTermQuery(new Term(fieldName,value));
  		
  		stq.setBoost(DOMUtils.getAttribute(e,"boost",1.0f));
		return stq;