Class PredictionQueryFactory

java.lang.Object
de.cxp.ocs.elasticsearch.query.builder.PredictionQueryFactory
All Implemented Interfaces:
FallbackConsumer, ESQueryFactory

public class PredictionQueryFactory extends Object implements ESQueryFactory, FallbackConsumer

Query factory that analyzes the search keywords and already checks Elasticsearch about which terms hit documents together (including spell correction and term shingles). Based on that analysis a query is built that tries to match most of the terms (magic algorithm ;)).

Supported QueryBuildingSettings:
  • 'analyzer' that is used to match the configured fields.