Examples of BoostingTermQuery


Examples of org.apache.lucene.search.payloads.BoostingTermQuery

  public SpanQuery getSpanQuery(Element e) throws ParserException
  {
     String fieldName=DOMUtils.getAttributeWithInheritanceOrFail(e,"fieldName");
     String value=DOMUtils.getNonBlankTextOrFail(e);
      BoostingTermQuery btq = new BoostingTermQuery(new Term(fieldName,value));

      btq.setBoost(DOMUtils.getAttribute(e,"boost",1.0f));
    return btq;

  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.