public static interface SpellCorrectedQuery.Builder extends SdkPojo, CopyableBuilder<SpellCorrectedQuery.Builder,SpellCorrectedQuery>
| Modifier and Type | Method and Description |
|---|---|
SpellCorrectedQuery.Builder |
corrections(Collection<Correction> corrections)
The corrected misspelled word or words in a query.
|
SpellCorrectedQuery.Builder |
corrections(Consumer<Correction.Builder>... corrections)
The corrected misspelled word or words in a query.
|
SpellCorrectedQuery.Builder |
corrections(Correction... corrections)
The corrected misspelled word or words in a query.
|
SpellCorrectedQuery.Builder |
suggestedQueryText(String suggestedQueryText)
The query with the suggested spell corrections.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildSpellCorrectedQuery.Builder suggestedQueryText(String suggestedQueryText)
The query with the suggested spell corrections.
suggestedQueryText - The query with the suggested spell corrections.SpellCorrectedQuery.Builder corrections(Collection<Correction> corrections)
The corrected misspelled word or words in a query.
corrections - The corrected misspelled word or words in a query.SpellCorrectedQuery.Builder corrections(Correction... corrections)
The corrected misspelled word or words in a query.
corrections - The corrected misspelled word or words in a query.SpellCorrectedQuery.Builder corrections(Consumer<Correction.Builder>... corrections)
The corrected misspelled word or words in a query.
This is a convenience method that creates an instance of theCorrection.Builder avoiding the need to create one
manually via Correction.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and its
result is passed to #corrections(List.
corrections - a consumer that will call methods on
Correction.Builder#corrections(java.util.Collection) Copyright © 2023. All rights reserved.