/** * Same as {@link #prefix(String)} with full fuzzy options * see {@link FuzzyOptions.Builder} */ public CompletionSuggestionBuilder prefix(String prefix, FuzzyOptions fuzzyOptions) { super.prefix(prefix); this.fuzzyOptions = fuzzyOptions; return this; }
/** * Sets the prefix to provide completions for. * The prefix gets analyzed by the suggest analyzer. */ @Override public CompletionSuggestionBuilder prefix(String prefix) { super.prefix(prefix); return this; }
@Override public final boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || getClass() != obj.getClass()) { return false; } @SuppressWarnings("unchecked") T other = (T) obj; return Objects.equals(text, other.text()) && Objects.equals(prefix, other.prefix()) && Objects.equals(regex, other.regex()) && Objects.equals(field, other.field()) && Objects.equals(analyzer, other.analyzer()) && Objects.equals(size, other.size()) && Objects.equals(shardSize, other.shardSize()) && doEquals(other); }
/** * Same as {@link #prefix(String)} with fuzziness of <code>fuzziness</code> */ public CompletionSuggestionBuilder prefix(String prefix, Fuzziness fuzziness) { super.prefix(prefix); this.fuzzyOptions = new FuzzyOptions.Builder().setFuzziness(fuzziness).build(); return this; }
/** * Sets the prefix to provide completions for. * The prefix gets analyzed by the suggest analyzer. */ @Override public CompletionSuggestionBuilder prefix(String prefix) { super.prefix(prefix); return this; }
/** * Same as {@link #prefix(String)} with full fuzzy options * see {@link FuzzyOptions.Builder} */ public CompletionSuggestionBuilder prefix(String prefix, FuzzyOptions fuzzyOptions) { super.prefix(prefix); this.fuzzyOptions = fuzzyOptions; return this; }
/** * Same as {@link #prefix(String)} with full fuzzy options * see {@link FuzzyOptions.Builder} */ public CompletionSuggestionBuilder prefix(String prefix, FuzzyOptions fuzzyOptions) { super.prefix(prefix); this.fuzzyOptions = fuzzyOptions; return this; }
/** * Same as {@link #prefix(String)} with full fuzzy options * see {@link FuzzyOptions.Builder} */ public CompletionSuggestionBuilder prefix(String prefix, FuzzyOptions fuzzyOptions) { super.prefix(prefix); this.fuzzyOptions = fuzzyOptions; return this; }
/** * Sets the prefix to provide completions for. * The prefix gets analyzed by the suggest analyzer. */ @Override public CompletionSuggestionBuilder prefix(String prefix) { super.prefix(prefix); return this; }
/** * Sets the prefix to provide completions for. * The prefix gets analyzed by the suggest analyzer. */ @Override public CompletionSuggestionBuilder prefix(String prefix) { super.prefix(prefix); return this; }
suggestionBuilder.prefix(prefix);
@Override public final boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || getClass() != obj.getClass()) { return false; } @SuppressWarnings("unchecked") T other = (T) obj; return Objects.equals(text, other.text()) && Objects.equals(prefix, other.prefix()) && Objects.equals(regex, other.regex()) && Objects.equals(field, other.field()) && Objects.equals(analyzer, other.analyzer()) && Objects.equals(size, other.size()) && Objects.equals(shardSize, other.shardSize()) && doEquals(other); }
@Override public final boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || getClass() != obj.getClass()) { return false; } @SuppressWarnings("unchecked") T other = (T) obj; return Objects.equals(text, other.text()) && Objects.equals(prefix, other.prefix()) && Objects.equals(regex, other.regex()) && Objects.equals(field, other.field()) && Objects.equals(analyzer, other.analyzer()) && Objects.equals(size, other.size()) && Objects.equals(shardSize, other.shardSize()) && doEquals(other); }
@Override public final boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || getClass() != obj.getClass()) { return false; } @SuppressWarnings("unchecked") T other = (T) obj; return Objects.equals(text, other.text()) && Objects.equals(prefix, other.prefix()) && Objects.equals(regex, other.regex()) && Objects.equals(field, other.field()) && Objects.equals(analyzer, other.analyzer()) && Objects.equals(size, other.size()) && Objects.equals(shardSize, other.shardSize()) && doEquals(other); }
/** * Same as {@link #prefix(String)} with fuzziness of <code>fuzziness</code> */ public CompletionSuggestionBuilder prefix(String prefix, Fuzziness fuzziness) { super.prefix(prefix); this.fuzzyOptions = new FuzzyOptions.Builder().setFuzziness(fuzziness).build(); return this; }
/** * Same as {@link #prefix(String)} with fuzziness of <code>fuzziness</code> */ public CompletionSuggestionBuilder prefix(String prefix, Fuzziness fuzziness) { super.prefix(prefix); this.fuzzyOptions = new FuzzyOptions.Builder().setFuzziness(fuzziness).build(); return this; }
/** * Same as {@link #prefix(String)} with fuzziness of <code>fuzziness</code> */ public CompletionSuggestionBuilder prefix(String prefix, Fuzziness fuzziness) { super.prefix(prefix); this.fuzzyOptions = new FuzzyOptions.Builder().setFuzziness(fuzziness).build(); return this; }
suggestionBuilder.prefix(prefix);
suggestionBuilder.prefix(prefix);
suggestionBuilder.prefix(prefix);