Class AnalyzeRequestBuilder

    • Method Detail

      • setAnalyzer

        public AnalyzeRequestBuilder setAnalyzer​(java.lang.String analyzer)
        Sets the analyzer name to use in order to analyze the text.
        Parameters:
        analyzer - The analyzer name.
      • setField

        public AnalyzeRequestBuilder setField​(java.lang.String field)
        Sets the field that its analyzer will be used to analyze the text. Note, requires an index to be set.
      • setTokenizer

        public AnalyzeRequestBuilder setTokenizer​(java.lang.String tokenizer)
        Instead of setting the analyzer, sets the tokenizer as name that will be used as part of a custom analyzer.
      • setTokenizer

        public AnalyzeRequestBuilder setTokenizer​(java.util.Map<java.lang.String,​?> tokenizer)
        Instead of setting the analyzer, sets the tokenizer using custom settings that will be used as part of a custom analyzer.
      • addTokenFilter

        public AnalyzeRequestBuilder addTokenFilter​(java.util.Map<java.lang.String,​?> tokenFilter)
        Add token filter setting that will be used on top of a tokenizer provided.
      • addTokenFilter

        public AnalyzeRequestBuilder addTokenFilter​(java.lang.String tokenFilter)
        Add a name of token filter that will be used on top of a tokenizer provided.
      • addCharFilter

        public AnalyzeRequestBuilder addCharFilter​(java.util.Map<java.lang.String,​?> charFilter)
        Add char filter setting that will be used on top of a tokenizer provided.
      • addCharFilter

        public AnalyzeRequestBuilder addCharFilter​(java.lang.String tokenFilter)
        Add a name of char filter that will be used before the tokenizer.
      • setAttributes

        public AnalyzeRequestBuilder setAttributes​(java.lang.String... attributes)
        Sets attributes that will include results
      • setNormalizer

        public AnalyzeRequestBuilder setNormalizer​(java.lang.String normalizer)
        Instead of setting the analyzer and tokenizer, sets the normalizer as name