Class AbstractSearchInput

  • All Implemented Interfaces:
    org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentObject
    Direct Known Subclasses:
    SearchInput, SearchTemplateInput

    public abstract class AbstractSearchInput
    extends AbstractInput
    • Field Detail

      • timeout

        protected org.elasticsearch.core.TimeValue timeout
      • templateScriptFactory

        protected org.elasticsearch.script.TemplateScript.Factory templateScriptFactory
      • searchType

        protected org.elasticsearch.action.search.SearchType searchType
      • indicesOptions

        protected org.elasticsearch.action.support.IndicesOptions indicesOptions
    • Constructor Detail

    • Method Detail

      • getIndicesAsArray

        protected String[] getIndicesAsArray()
      • createTemplateScript

        protected abstract org.elasticsearch.script.Script createTemplateScript()
      • compileScripts

        public void compileScripts​(WatchInitializationService watchInitService)
                            throws com.floragunn.searchsupport.config.validation.ConfigValidationException
        Throws:
        com.floragunn.searchsupport.config.validation.ConfigValidationException
      • createSearchRequest

        protected org.elasticsearch.action.search.SearchRequest createSearchRequest​(org.elasticsearch.common.xcontent.NamedXContentRegistry xContentRegistry,
                                                                                    String searchBody)
      • parseIndicesOptions

        public static org.elasticsearch.action.support.IndicesOptions parseIndicesOptions​(com.fasterxml.jackson.databind.JsonNode jsonNode)
                                                                                   throws com.floragunn.searchsupport.config.validation.ConfigValidationException
        Throws:
        com.floragunn.searchsupport.config.validation.ConfigValidationException
      • getTimeout

        public org.elasticsearch.core.TimeValue getTimeout()
      • setTimeout

        public void setTimeout​(org.elasticsearch.core.TimeValue timeout)