Class AnalyzeRequest

    • Method Detail

      • withGlobalAnalyzer

        public static AnalyzeRequest withGlobalAnalyzer​(String analyzer,
                                                        String... text)
        Analyzes text using a global analyzer
      • withIndexAnalyzer

        public static AnalyzeRequest withIndexAnalyzer​(String index,
                                                       String analyzer,
                                                       String... text)
        Analyzes text using a named analyzer on an index
      • withField

        public static AnalyzeRequest withField​(String index,
                                               String field,
                                               String... text)
        Analyzes text using the analyzer defined on a specific field within an index
      • withNormalizer

        public static AnalyzeRequest withNormalizer​(String index,
                                                    String normalizer,
                                                    String... text)
        Analyzes text using a named normalizer on an index
      • index

        public String index()
        Returns the index that the request should be executed against, or null if no index is specified
      • text

        public String[] text()
        Returns the text to be analyzed
      • analyzer

        public String analyzer()
        Returns the named analyzer used for analysis, if defined
      • normalizer

        public String normalizer()
        Returns the named tokenizer used for analysis, if defined
      • tokenizer

        public org.elasticsearch.client.indices.AnalyzeRequest.NameOrDefinition tokenizer()
        Returns a custom Tokenizer used for analysis, if defined
      • tokenFilters

        public List<org.elasticsearch.client.indices.AnalyzeRequest.NameOrDefinition> tokenFilters()
        Returns the custom token filters used for analysis, if defined
      • charFilters

        public List<org.elasticsearch.client.indices.AnalyzeRequest.NameOrDefinition> charFilters()
        Returns the custom character filters used for analysis, if defined
      • field

        public String field()
        Returns the field to take an Analyzer from, if defined
      • explain

        public AnalyzeRequest explain​(boolean explain)
        Set whether or not detailed explanations of analysis should be returned
      • explain

        public boolean explain()
      • attributes

        public String[] attributes()