Package org.apache.lucene.search.payloads

Examples of org.apache.lucene.search.payloads.BoostingTermQuery$BoostingTermWeight$BoostingSpanScorer


  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

Related Classes of org.apache.lucene.search.payloads.BoostingTermQuery$BoostingTermWeight$BoostingSpanScorer

Copyright © 2018 www.massapicom. 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.