Class FulltextSearchFunction
java.lang.Object
ch.tocco.nice2.enterprisesearch.impl.queryfunction.FulltextSearchFunction
- All Implemented Interfaces:
QueryFunction
-
Field Summary
-
Constructor Summary
ConstructorDescriptionFulltextSearchFunction
(TypeManager typeManager, FulltextIndexService fulltextIndexService, org.slf4j.Logger log, FulltextSearchBuilderFactoryMarker fulltextSearchBuilderFactoryMarker, ConditionFactory conditionFactory) -
Method Summary
Modifier and TypeMethodDescriptiongetName()
The unique function name.@Nullable Node
postCompile
(Cursor cursor, FuncallNode functionRoot, EntityModel rootEntityModel) Applies this function to the given (sub)tree.void
setHostName
(String hostName) void
setNodeLimit
(int limit) void
setQueryLimit
(int limit) void
setSecurityCheckThreshold
(int limit)
-
Field Details
-
QUERY_LIMIT
public int QUERY_LIMIT -
NODE_LIMIT
public int NODE_LIMIT -
SECURITY_CHECK_THRESHOLD
public int SECURITY_CHECK_THRESHOLD
-
-
Constructor Details
-
FulltextSearchFunction
public FulltextSearchFunction(TypeManager typeManager, @Lazy FulltextIndexService fulltextIndexService, org.slf4j.Logger log, FulltextSearchBuilderFactoryMarker fulltextSearchBuilderFactoryMarker, @Lazy ConditionFactory conditionFactory)
-
-
Method Details
-
getName
Description copied from interface:QueryFunction
The unique function name.- Specified by:
getName
in interfaceQueryFunction
-
postCompile
@Nullable public @Nullable Node postCompile(Cursor cursor, FuncallNode functionRoot, EntityModel rootEntityModel) Description copied from interface:QueryFunction
Applies this function to the given (sub)tree.- Specified by:
postCompile
in interfaceQueryFunction
-
setQueryLimit
@Value("${nice2.enterprisesearch.queryfunction.queryLimit}") public void setQueryLimit(int limit) -
setSecurityCheckThreshold
@Value("${nice2.enterprisesearch.queryfunction.securityCheckThreshold}") public void setSecurityCheckThreshold(int limit) -
setNodeLimit
@Value("${nice2.enterprisesearch.queryfunction.nodeLimit}") public void setNodeLimit(int limit) -
setHostName
@Value("${nice2.enterprisesearch.elasticsearch.hostName:#{null}}") public void setHostName(String hostName)
-