FileDocCategorySizeDatePackage
UserInputQueryBuilder.javaAPI DocApache Lucene 2.1.01846Wed Feb 14 10:46:20 GMT 2007org.apache.lucene.xmlparser.builders

UserInputQueryBuilder

public class UserInputQueryBuilder extends Object implements org.apache.lucene.xmlparser.QueryBuilder
author
maharwood

Fields Summary
QueryParser
parser
Constructors Summary
public UserInputQueryBuilder(QueryParser parser)

param
parser

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

		String text=DOMUtils.getText(e);
		try {
			Query q = parser.parse(text);
			q.setBoost(DOMUtils.getAttribute(e,"boost",1.0f));
			return q;
		} catch (ParseException e1) {
			throw new ParserException(e1.getMessage());
		}