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

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

There is a newer version: 2.0.1
Show newest version
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;

/**
 * 

* Removes matches which overlap with another span query. The span not query * maps to Sensei SpanNotQuery. Here is an example: *

* * *

* The include and exclude clauses can be any span * type query. The include clause is the span query whose matches * are filtered, and the exclude clause is the span query whose * matches must not overlap those returned. *

* * */ @CustomJsonHandler(QueryJsonHandler.class) public class SpanNot implements Query { SpanTerm include; SpanTerm exclude; private final double boost; public SpanNot(SpanTerm include, SpanTerm exclude, double boost) { super(); this.include = include; include.setBoost(null); exclude.setBoost(null); this.exclude = exclude; this.boost = boost; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy