Example usage for org.apache.solr.search ValueSourceParser subclass-usage

List of usage examples for org.apache.solr.search ValueSourceParser subclass-usage

Introduction

In this page you can find the example usage for org.apache.solr.search ValueSourceParser subclass-usage.

Usage

From source file alba.solr.core.DynamicValueSourceParser.java

public class DynamicValueSourceParser extends ValueSourceParser {

    Logger logger = LoggerFactory.getLogger(this.getClass().getName());

    Map<String, DocValuesDynamicValueSource> dynamicFunctions;

From source file com.gogobot.DistanceParser.java

/**
 * Parses "geodist" creating {@link HaversineConstFunction} or {@link HaversineFunction}
 * or calling {@link SpatialStrategy#makeDistanceValueSource(com.spatial4j.core.shape.Point,double)}.
 */
public class DistanceParser extends ValueSourceParser {

From source file com.ifactory.press.db.solr.HitCount.java

/**
 * Defines the Solr function hitcount([field, ...]) which returns the total
 * of termfreq(term) for all terms in the query.  The arguments specify
 * fields whose terms are to be counted.  If no arguments are passed, terms
 * from every field are counted.
 */

From source file com.indoqa.solr.spatial.corridor.query.points.AbstractPointsQueryCorridorValueSourceParser.java

public abstract class AbstractPointsQueryCorridorValueSourceParser extends ValueSourceParser {

    @Override
    public ValueSource parse(FunctionQParser fp) throws SyntaxError {
        List<Point> queryPoints = new ArrayList<>();
        String[] queryPointParameters = fp.getParams().getParams("corridor.point");

From source file com.indoqa.solr.spatial.corridor.query.route.AbstractRouteQueryValueSourceParser.java

public abstract class AbstractRouteQueryValueSourceParser extends ValueSourceParser {

    @Override
    public ValueSource parse(FunctionQParser fp) throws SyntaxError {
        LineString lineString = LineStringUtils.parse(fp.getParam("corridor.route"), fp.getReq().getSearcher());
        ValueSource locationValueSource = fp.parseValueSource();

From source file com.mysoft.b2b.solr.B258DynamicSourceParser.java

/**
 * ganq: Change to the actual description of this class
 * 
 * @version Revision History
 * 
 *          <pre>

From source file com.rzewucki.solr.functions.LengthFunctionParser.java

/**
 * This class provides parser for length function.
 * @author Marcin Rzewucki
 * @version 1.0.0 2014/01/08
 */
public class LengthFunctionParser extends ValueSourceParser {

From source file jp.sf.fess.solr.plugin.search.WordFreqValueSourceParser.java

public class WordFreqValueSourceParser extends ValueSourceParser {

    @Override
    public ValueSource parse(final FunctionQParser fp) throws SyntaxError {
        final String field = fp.parseArg();
        final String word = fp.parseArg();

From source file net.semanticmetadata.lire.solr.LireValueSourceParser.java

/**
 * <p>A query function for sorting results based on the LIRE CBIR functions.
 * Implementation based partially on the outdated guide given on http://www.supermind.org/blog/756,
 * comments on the mailing list provided from Chris Hostetter, and the 4.4 Solr and Lucene source. </p>
 *
 * <p>Do not forget to add the function parser to the lsolrconfig.xml file like this:<br>

From source file org.apache.lucene.function.dwarf.ManualScoreParser.java

public class ManualScoreParser extends ValueSourceParser {

    @Override
    public ValueSource parse(FunctionQParser fp) throws SyntaxError {
        List<ValueSource> sources = fp.parseValueSourceList();
        ValueSource[] objl = sources.toArray(new ValueSource[sources.size()]);