All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.senseidb.search.client.json.req.query.span.SpanFirst Maven / Gradle / Ivy

package com.senseidb.search.client.json.req.query.span;

import com.senseidb.search.client.json.CustomJsonHandler;
import com.senseidb.search.client.json.req.query.Query;
import com.senseidb.search.client.json.req.query.QueryJsonHandler;

/**
 * 

* Matches spans near the beginning of a field. The span first query maps to * Sensei SpanFirstQuery. Here is an example: *

* * *

* The match clause can be any other span type query. The * end controls the maximum end position permitted in a match. *

* * */ @CustomJsonHandler(QueryJsonHandler.class) public class SpanFirst implements Query { SpanTerm match; int end; private double boost; public SpanFirst(SpanTerm match, int end, double boost) { super(); this.match = match; this.end = end; this.boost = boost; match.setBoost(null); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy