FileDocCategorySizeDatePackage
UserInputQueryBuilder.javaAPI DocApache Lucene 1.91065Mon Feb 27 11:12:20 GMT 2006org.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());
		}