super(); this.factory = factory;
int end=DOMUtils.getAttribute(e,"end",1); Element child=DOMUtils.getFirstChildElement(e); SpanQuery q=factory.getSpanQuery(child); SpanFirstQuery sfq = new SpanFirstQuery(q,end); sfq.setBoost(DOMUtils.getAttribute(e,"boost",1.0f)); return sfq;