Package org.apache.lucene.search.function

Examples of org.apache.lucene.search.function.ValueSourceQuery


          this.translator.getFieldType(key));

      ValueSource valSrc = new ErlangValueSource((ErlangFilter) filter);

      return new CustomScoreQuery(new ConstantScoreQuery(filter),
          new ValueSourceQuery(valSrc));
    }
  }
View Full Code Here


    Filter filter = new RedisFilter(host, port, db, command, key);

    ValueSource valSrc = new RedisValueSource((RedisFilter) filter);

    return new CustomScoreQuery(new ConstantScoreQuery(filter),
        new ValueSourceQuery(valSrc));
  }
View Full Code Here

                + "`lng");

        ValueSource valSrc = new DistanceValueSource(filter);

        return new CustomScoreQuery(new ConstantScoreQuery(filter),
            new ValueSourceQuery(valSrc));
      } catch (IllegalArgumentException iae) {
        throw new ParseException(iae.getMessage());
      }
    }
  }
View Full Code Here

        throw new DiscoveryException(sErr+spatialClause.getClass().getName());
      }
     
      if (bUseSpatialRanking) {
        SpatialRankingValueSource srvs = new SpatialRankingValueSource(envelope,queryPower,targetPower);
        Query spatialRankingQuery = new ValueSourceQuery(srvs);
        BooleanQuery bq = new BooleanQuery();
        bq.add(spatialQuery,BooleanClause.Occur.MUST);
        bq.add(spatialRankingQuery,BooleanClause.Occur.MUST);
        appendQuery(activeBooleanQuery,activeLogicalClause,bq);
        this.getQueryAdapter().setHasScoredExpression(true);
View Full Code Here

TOP

Related Classes of org.apache.lucene.search.function.ValueSourceQuery

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.