public Query getQuery(Element e) throws ParserException {String text = DOMUtils.getText(e);try {Query q = null;if (unSafeParser != null) {synchronized (unSafeParser) {q = unSafeParser.parse(text);}} else {String fieldName = DOMUtils.getAttribute(e, "fieldName", defaultField);QueryParser parser = createQueryParser(fieldName, analyzer);q = parser.parse(text);}float boost = DOMUtils.getAttribute(e, "boost", 1.0f);return new BoostQuery(q, boost);} catch (ParseException e1) {throw new ParserException(e1.getMessage());}}

public virtual Query GetQuery(XmlElement e){string text = DOMUtils.GetText(e);try{Query q = null;if (unSafeParser != null){lock (unSafeParser){q = unSafeParser.Parse(text);}}else{string fieldName = DOMUtils.GetAttribute(e, "fieldName", defaultField);QueryParser parser = CreateQueryParser(fieldName, analyzer);q = parser.Parse(text);}q.Boost = DOMUtils.GetAttribute(e, "boost", 1.0f);return q;}catch (ParseException e1){throw new ParserException(e1.Message);}}
