Examples of BoostedQuery


Examples of org.apache.solr.search.function.BoostedQuery

        boosts.add(vs);
      }

      if (boosts.size()>1) {
        ValueSource prod = new ProductFloatFunction(boosts.toArray(new ValueSource[boosts.size()]));
        topQuery = new BoostedQuery(query, prod);
      } else if (boosts.size() == 1) {
        topQuery = new BoostedQuery(query, boosts.get(0));
      }
    }

    return topQuery;
  }
View Full Code Here

Examples of org.apache.solr.search.function.BoostedQuery

        if (bq instanceof FunctionQuery) {
          vs = ((FunctionQuery)bq).getValueSource();
        } else {
          vs = new QueryValueSource(bq, 0.0f);
        }
        return new BoostedQuery(q, vs);
      }


      @Override
      public String[] getDefaultHighlightFields() {
View Full Code Here

Examples of org.apache.solr.search.function.BoostedQuery

        if (bq instanceof FunctionQuery) {
          vs = ((FunctionQuery)bq).getValueSource();
        } else {
          vs = new QueryValueSource(bq, 0.0f);
        }
        return new BoostedQuery(q, vs);
      }


      @Override
      public String[] getDefaultHighlightFields() {
View Full Code Here

Examples of org.apache.solr.search.function.BoostedQuery

        if (bq instanceof FunctionQuery) {
          vs = ((FunctionQuery)bq).getValueSource();
        } else {
          vs = new QueryValueSource(bq, 0.0f);
        }
        return new BoostedQuery(q, vs);
      }


      public String[] getDefaultHighlightFields() {
        return baseParser.getDefaultHighlightFields();
View Full Code Here

Examples of org.apache.solr.search.function.BoostedQuery

        if (bq instanceof FunctionQuery) {
          vs = ((FunctionQuery)bq).getValueSource();
        } else {
          vs = new QueryValueSource(bq, 0.0f);
        }
        return new BoostedQuery(q, vs);
      }


      public String[] getDefaultHighlightFields() {
        return baseParser.getDefaultHighlightFields();
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.