Class LiveSearchModifier

java.lang.Object
ch.tocco.nice2.enterprisesearch.impl.searchbuilder.LiveSearchModifier
All Implemented Interfaces:
FulltextSearchBuilderModifier

@Component @Order(200) @ConditionalOnProperty(name="nice2.enterprisesearch.elasticsearch.hostName") public class LiveSearchModifier extends Object implements FulltextSearchBuilderModifier
Adds wildcard at end of last term (results in "(myterm OR myterm*), if: * real search server is used and the search is not directly done one the database * term is not a number * term does not start with a quote (") * term does not end with a wildcard or question mark (* / ?) * term does not end with a brace (() * term does not end with a range operator (] / }) * term is longer than one char