diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/CjkBigramTokenFilterConverter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/CjkBigramTokenFilterConverter.java index f20c1b6c8b65..865b4595fb2b 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/CjkBigramTokenFilterConverter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/CjkBigramTokenFilterConverter.java @@ -52,7 +52,7 @@ public static com.azure.search.documents.indexes.implementation.models.CjkBigram String name = obj.getName(); cjkBigramTokenFilter.setName(name); - Boolean outputUnigrams = obj.isOutputUnigrams(); + Boolean outputUnigrams = obj.areOutputUnigrams(); cjkBigramTokenFilter.setOutputUnigrams(outputUnigrams); if (obj.getIgnoreScripts() != null) { diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/CommonGramTokenFilterConverter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/CommonGramTokenFilterConverter.java index 9187acde5384..7c4692904cb8 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/CommonGramTokenFilterConverter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/CommonGramTokenFilterConverter.java @@ -27,10 +27,10 @@ public static CommonGramTokenFilter map(com.azure.search.documents.indexes.imple commonGramTokenFilter.setName(name); Boolean ignoreCase = obj.isIgnoreCase(); - commonGramTokenFilter.setIgnoreCase(ignoreCase); + commonGramTokenFilter.setCaseIgnored(ignoreCase); Boolean useQueryMode = obj.isUseQueryMode(); - commonGramTokenFilter.setUseQueryMode(useQueryMode); + commonGramTokenFilter.setQueryModeUsed(useQueryMode); if (obj.getCommonWords() != null) { List commonWords = new ArrayList<>(obj.getCommonWords()); @@ -53,10 +53,10 @@ public static com.azure.search.documents.indexes.implementation.models.CommonGra String name = obj.getName(); commonGramTokenFilter.setName(name); - Boolean ignoreCase = obj.isIgnoreCase(); + Boolean ignoreCase = obj.isCaseIgnored(); commonGramTokenFilter.setIgnoreCase(ignoreCase); - Boolean useQueryMode = obj.isUseQueryMode(); + Boolean useQueryMode = obj.isQueryModeUsed(); commonGramTokenFilter.setUseQueryMode(useQueryMode); if (obj.getCommonWords() != null) { diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/DictionaryDecompounderTokenFilterConverter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/DictionaryDecompounderTokenFilterConverter.java index b856b111dff5..238808760805 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/DictionaryDecompounderTokenFilterConverter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/DictionaryDecompounderTokenFilterConverter.java @@ -30,7 +30,7 @@ public static DictionaryDecompounderTokenFilter map(com.azure.search.documents.i dictionaryDecompounderTokenFilter.setMinSubwordSize(minSubwordSize); Boolean onlyLongestMatch = obj.isOnlyLongestMatch(); - dictionaryDecompounderTokenFilter.setOnlyLongestMatch(onlyLongestMatch); + dictionaryDecompounderTokenFilter.setOnlyLongestMatched(onlyLongestMatch); Integer maxSubwordSize = obj.getMaxSubwordSize(); dictionaryDecompounderTokenFilter.setMaxSubwordSize(maxSubwordSize); @@ -61,7 +61,7 @@ public static com.azure.search.documents.indexes.implementation.models.Dictionar Integer minSubwordSize = obj.getMinSubwordSize(); dictionaryDecompounderTokenFilter.setMinSubwordSize(minSubwordSize); - Boolean onlyLongestMatch = obj.isOnlyLongestMatch(); + Boolean onlyLongestMatch = obj.isOnlyLongestMatched(); dictionaryDecompounderTokenFilter.setOnlyLongestMatch(onlyLongestMatch); Integer maxSubwordSize = obj.getMaxSubwordSize(); diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/EntityRecognitionSkillConverter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/EntityRecognitionSkillConverter.java index 8e81f5984dda..8f5210b4afc2 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/EntityRecognitionSkillConverter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/EntityRecognitionSkillConverter.java @@ -49,7 +49,7 @@ public static EntityRecognitionSkill map(com.azure.search.documents.indexes.impl entityRecognitionSkill.setDescription(description); Boolean includeTypelessEntities = obj.isIncludeTypelessEntities(); - entityRecognitionSkill.setIncludeTypelessEntities(includeTypelessEntities); + entityRecognitionSkill.setTypelessEntitiesIncluded(includeTypelessEntities); if (obj.getDefaultLanguageCode() != null) { EntityRecognitionSkillLanguage defaultLanguageCode = @@ -100,7 +100,7 @@ public static com.azure.search.documents.indexes.implementation.models.EntityRec String description = obj.getDescription(); entityRecognitionSkill.setDescription(description); - Boolean includeTypelessEntities = obj.isIncludeTypelessEntities(); + Boolean includeTypelessEntities = obj.areTypelessEntitiesIncluded(); entityRecognitionSkill.setIncludeTypelessEntities(includeTypelessEntities); if (obj.getDefaultLanguageCode() != null) { diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/KeepTokenFilterConverter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/KeepTokenFilterConverter.java index f70a511f5dc6..9098e7bcd674 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/KeepTokenFilterConverter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/KeepTokenFilterConverter.java @@ -53,7 +53,7 @@ public static com.azure.search.documents.indexes.implementation.models.KeepToken keepTokenFilter.setKeepWords(keepWords); } - Boolean lowerCaseKeepWords = obj.isLowerCaseKeepWords(); + Boolean lowerCaseKeepWords = obj.areLowerCaseKeepWords(); keepTokenFilter.setLowerCaseKeepWords(lowerCaseKeepWords); return keepTokenFilter; } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/KeywordMarkerTokenFilterConverter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/KeywordMarkerTokenFilterConverter.java index b9e40bc604a9..cefb81cce5e3 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/KeywordMarkerTokenFilterConverter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/KeywordMarkerTokenFilterConverter.java @@ -32,7 +32,7 @@ public static KeywordMarkerTokenFilter map(com.azure.search.documents.indexes.im } Boolean ignoreCase = obj.isIgnoreCase(); - keywordMarkerTokenFilter.setIgnoreCase(ignoreCase); + keywordMarkerTokenFilter.setCaseIgnored(ignoreCase); return keywordMarkerTokenFilter; } @@ -55,7 +55,7 @@ public static com.azure.search.documents.indexes.implementation.models.KeywordMa keywordMarkerTokenFilter.setKeywords(keywords); } - Boolean ignoreCase = obj.isIgnoreCase(); + Boolean ignoreCase = obj.isCaseIgnored(); keywordMarkerTokenFilter.setIgnoreCase(ignoreCase); return keywordMarkerTokenFilter; } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/LimitTokenFilterConverter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/LimitTokenFilterConverter.java index f7d0be314d15..9b74b5d54fe3 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/LimitTokenFilterConverter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/LimitTokenFilterConverter.java @@ -26,7 +26,7 @@ public static LimitTokenFilter map(com.azure.search.documents.indexes.implementa limitTokenFilter.setMaxTokenCount(maxTokenCount); Boolean consumeAllTokens = obj.isConsumeAllTokens(); - limitTokenFilter.setConsumeAllTokens(consumeAllTokens); + limitTokenFilter.setAllTokensConsumed(consumeAllTokens); return limitTokenFilter; } @@ -46,7 +46,7 @@ public static com.azure.search.documents.indexes.implementation.models.LimitToke Integer maxTokenCount = obj.getMaxTokenCount(); limitTokenFilter.setMaxTokenCount(maxTokenCount); - Boolean consumeAllTokens = obj.isConsumeAllTokens(); + Boolean consumeAllTokens = obj.areAllTokensConsumed(); limitTokenFilter.setConsumeAllTokens(consumeAllTokens); return limitTokenFilter; } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/MicrosoftLanguageStemmingTokenizerConverter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/MicrosoftLanguageStemmingTokenizerConverter.java index cc106eb70799..e8fba14711a8 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/MicrosoftLanguageStemmingTokenizerConverter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/MicrosoftLanguageStemmingTokenizerConverter.java @@ -35,7 +35,7 @@ public static MicrosoftLanguageStemmingTokenizer map(com.azure.search.documents. } Boolean isSearchTokenizer = obj.isSearchTokenizer(); - microsoftLanguageStemmingTokenizer.setIsSearchTokenizer(isSearchTokenizer); + microsoftLanguageStemmingTokenizer.setIsSearchTokenizerUsed(isSearchTokenizer); return microsoftLanguageStemmingTokenizer; } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/OcrSkillConverter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/OcrSkillConverter.java index 200072c1f12f..6dcd95b87e9c 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/OcrSkillConverter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/OcrSkillConverter.java @@ -52,7 +52,7 @@ public static OcrSkill map(com.azure.search.documents.indexes.implementation.mod } Boolean shouldDetectOrientation = obj.isShouldDetectOrientation(); - ocrSkill.shouldDetectOrientation(shouldDetectOrientation); + ocrSkill.setShouldDetectOrientation(shouldDetectOrientation); return ocrSkill; } @@ -93,7 +93,7 @@ public static com.azure.search.documents.indexes.implementation.models.OcrSkill ocrSkill.setDefaultLanguageCode(defaultLanguageCode); } - Boolean shouldDetectOrientation = obj.shouldDetectOrientation(); + Boolean shouldDetectOrientation = obj.setShouldDetectOrientation(); ocrSkill.setShouldDetectOrientation(shouldDetectOrientation); return ocrSkill; } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/PathHierarchyTokenizerConverter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/PathHierarchyTokenizerConverter.java index d68ba77066f3..687545c0c11e 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/PathHierarchyTokenizerConverter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/PathHierarchyTokenizerConverter.java @@ -30,7 +30,7 @@ public static PathHierarchyTokenizer map(com.azure.search.documents.indexes.impl pathHierarchyTokenizer.setDelimiter(delimiter); Boolean reverseTokenOrder = obj.isReverseTokenOrder(); - pathHierarchyTokenizer.setReverseTokenOrder(reverseTokenOrder); + pathHierarchyTokenizer.setTokenOrderReversed(reverseTokenOrder); Integer numberOfTokensToSkip = obj.getNumberOfTokensToSkip(); pathHierarchyTokenizer.setNumberOfTokensToSkip(numberOfTokensToSkip); @@ -60,7 +60,7 @@ public static com.azure.search.documents.indexes.implementation.models.PathHiera String delimiter = obj.getDelimiter(); pathHierarchyTokenizerV2.setDelimiter(delimiter); - Boolean reverseTokenOrder = obj.isReverseTokenOrder(); + Boolean reverseTokenOrder = obj.isTokenOrderReversed(); pathHierarchyTokenizerV2.setReverseTokenOrder(reverseTokenOrder); Integer numberOfTokensToSkip = obj.getNumberOfTokensToSkip(); diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/PatternAnalyzerConverter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/PatternAnalyzerConverter.java index 48752caf16cc..e73c7c7483ff 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/PatternAnalyzerConverter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/PatternAnalyzerConverter.java @@ -60,7 +60,7 @@ public static com.azure.search.documents.indexes.implementation.models.PatternAn String name = obj.getName(); patternAnalyzer.setName(name); - Boolean lowerCaseTerms = obj.isLowerCaseTerms(); + Boolean lowerCaseTerms = obj.areLowerCaseTerms(); patternAnalyzer.setLowerCaseTerms(lowerCaseTerms); String pattern = obj.getPattern(); diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/PhoneticTokenFilterConverter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/PhoneticTokenFilterConverter.java index 8900605574a2..7c080df5a194 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/PhoneticTokenFilterConverter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/PhoneticTokenFilterConverter.java @@ -25,7 +25,7 @@ public static PhoneticTokenFilter map(com.azure.search.documents.indexes.impleme phoneticTokenFilter.setName(name); Boolean replaceOriginalTokens = obj.isReplaceOriginalTokens(); - phoneticTokenFilter.setReplaceOriginalTokens(replaceOriginalTokens); + phoneticTokenFilter.setOriginalTokensReplaced(replaceOriginalTokens); if (obj.getEncoder() != null) { PhoneticEncoder encoder = PhoneticEncoderConverter.map(obj.getEncoder()); @@ -48,7 +48,7 @@ public static com.azure.search.documents.indexes.implementation.models.PhoneticT String name = obj.getName(); phoneticTokenFilter.setName(name); - Boolean replaceOriginalTokens = obj.isReplaceOriginalTokens(); + Boolean replaceOriginalTokens = obj.areOriginalTokensReplaced(); phoneticTokenFilter.setReplaceOriginalTokens(replaceOriginalTokens); if (obj.getEncoder() != null) { diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/RequestOptionsConverter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/RequestOptionsConverter.java index f00b8062f716..dd2088340192 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/RequestOptionsConverter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/RequestOptionsConverter.java @@ -22,7 +22,7 @@ public static RequestOptions map(com.azure.search.documents.implementation.model RequestOptions requestOptions = new RequestOptions(); UUID xMsClientRequestId = obj.getXMsClientRequestId(); - requestOptions.setXMsClientRequestId(xMsClientRequestId); + requestOptions.setClientRequestId(xMsClientRequestId); return requestOptions; } @@ -36,7 +36,7 @@ public static com.azure.search.documents.implementation.models.RequestOptions ma com.azure.search.documents.implementation.models.RequestOptions requestOptions = new com.azure.search.documents.implementation.models.RequestOptions(); - UUID xMsClientRequestId = obj.getXMsClientRequestId(); + UUID xMsClientRequestId = obj.getClientRequestId(); requestOptions.setXMsClientRequestId(xMsClientRequestId); return requestOptions; } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/RequestOptionsIndexesConverter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/RequestOptionsIndexesConverter.java index e5df55daf877..2a859fc18dfe 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/RequestOptionsIndexesConverter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/RequestOptionsIndexesConverter.java @@ -18,7 +18,7 @@ public static RequestOptions map(com.azure.search.documents.indexes.implementati RequestOptions requestOptions = new RequestOptions(); UUID xMsClientRequestId = obj.getXMsClientRequestId(); - requestOptions.setXMsClientRequestId(xMsClientRequestId); + requestOptions.setClientRequestId(xMsClientRequestId); return requestOptions; } @@ -32,7 +32,7 @@ public static com.azure.search.documents.indexes.implementation.models.RequestOp com.azure.search.documents.indexes.implementation.models.RequestOptions requestOptions = new com.azure.search.documents.indexes.implementation.models.RequestOptions(); - UUID xMsClientRequestId = obj.getXMsClientRequestId(); + UUID xMsClientRequestId = obj.getClientRequestId(); requestOptions.setXMsClientRequestId(xMsClientRequestId); return requestOptions; } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/ShingleTokenFilterConverter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/ShingleTokenFilterConverter.java index 56758625c133..2d0eb32933ee 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/ShingleTokenFilterConverter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/ShingleTokenFilterConverter.java @@ -60,13 +60,13 @@ public static com.azure.search.documents.indexes.implementation.models.ShingleTo Integer minShingleSize = obj.getMinShingleSize(); shingleTokenFilter.setMinShingleSize(minShingleSize); - Boolean outputUnigrams = obj.isOutputUnigrams(); + Boolean outputUnigrams = obj.areOutputUnigrams(); shingleTokenFilter.setOutputUnigrams(outputUnigrams); String filterToken = obj.getFilterToken(); shingleTokenFilter.setFilterToken(filterToken); - Boolean outputUnigramsIfNoShingles = obj.isOutputUnigramsIfNoShingles(); + Boolean outputUnigramsIfNoShingles = obj.areOutputUnigramsIfNoShingles(); shingleTokenFilter.setOutputUnigramsIfNoShingles(outputUnigramsIfNoShingles); Integer maxShingleSize = obj.getMaxShingleSize(); diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/StopwordsTokenFilterConverter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/StopwordsTokenFilterConverter.java index 00bee38ca411..45d7ea166f3e 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/StopwordsTokenFilterConverter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/StopwordsTokenFilterConverter.java @@ -28,10 +28,10 @@ public static StopwordsTokenFilter map(com.azure.search.documents.indexes.implem stopwordsTokenFilter.setName(name); Boolean removeTrailingStopWords = obj.isRemoveTrailingStopWords(); - stopwordsTokenFilter.setRemoveTrailingStopWords(removeTrailingStopWords); + stopwordsTokenFilter.setTrailingStopWordsRemoved(removeTrailingStopWords); Boolean ignoreCase = obj.isIgnoreCase(); - stopwordsTokenFilter.setIgnoreCase(ignoreCase); + stopwordsTokenFilter.setCaseIgnored(ignoreCase); if (obj.getStopwords() != null) { List stopwords = new ArrayList<>(obj.getStopwords()); @@ -59,10 +59,10 @@ public static com.azure.search.documents.indexes.implementation.models.Stopwords String name = obj.getName(); stopwordsTokenFilter.setName(name); - Boolean removeTrailingStopWords = obj.isRemoveTrailingStopWords(); + Boolean removeTrailingStopWords = obj.areTrailingStopWordsRemoved(); stopwordsTokenFilter.setRemoveTrailingStopWords(removeTrailingStopWords); - Boolean ignoreCase = obj.isIgnoreCase(); + Boolean ignoreCase = obj.isCaseIgnored(); stopwordsTokenFilter.setIgnoreCase(ignoreCase); if (obj.getStopwords() != null) { diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/SynonymTokenFilterConverter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/SynonymTokenFilterConverter.java index 51d0a4eefe91..7569d9f96e26 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/SynonymTokenFilterConverter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/SynonymTokenFilterConverter.java @@ -35,7 +35,7 @@ public static SynonymTokenFilter map(com.azure.search.documents.indexes.implemen } Boolean ignoreCase = obj.isIgnoreCase(); - synonymTokenFilter.setIgnoreCase(ignoreCase); + synonymTokenFilter.setCaseIgnored(ignoreCase); return synonymTokenFilter; } @@ -53,7 +53,7 @@ public static com.azure.search.documents.indexes.implementation.models.SynonymTo String name = obj.getName(); synonymTokenFilter.setName(name); - Boolean expand = obj.isExpand(); + Boolean expand = obj.getExpand(); synonymTokenFilter.setExpand(expand); if (obj.getSynonyms() != null) { @@ -61,7 +61,7 @@ public static com.azure.search.documents.indexes.implementation.models.SynonymTo synonymTokenFilter.setSynonyms(synonyms); } - Boolean ignoreCase = obj.isIgnoreCase(); + Boolean ignoreCase = obj.isCaseIgnored(); synonymTokenFilter.setIgnoreCase(ignoreCase); return synonymTokenFilter; } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/WordDelimiterTokenFilterConverter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/WordDelimiterTokenFilterConverter.java index 4090b24e0e5b..2f5d6d7f7b64 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/WordDelimiterTokenFilterConverter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/converters/WordDelimiterTokenFilterConverter.java @@ -27,7 +27,7 @@ public static WordDelimiterTokenFilter map(com.azure.search.documents.indexes.im wordDelimiterTokenFilter.setName(name); Boolean catenateNumbers = obj.isCatenateNumbers(); - wordDelimiterTokenFilter.setCatenateNumbers(catenateNumbers); + wordDelimiterTokenFilter.setNumbersCatenated(catenateNumbers); if (obj.getProtectedWords() != null) { List protectedWords = new ArrayList<>(obj.getProtectedWords()); @@ -56,7 +56,7 @@ public static WordDelimiterTokenFilter map(com.azure.search.documents.indexes.im wordDelimiterTokenFilter.setCatenateAll(catenateAll); Boolean catenateWords = obj.isCatenateWords(); - wordDelimiterTokenFilter.setCatenateWords(catenateWords); + wordDelimiterTokenFilter.setWordsCatenated(catenateWords); return wordDelimiterTokenFilter; } @@ -74,7 +74,7 @@ public static com.azure.search.documents.indexes.implementation.models.WordDelim String name = obj.getName(); wordDelimiterTokenFilter.setName(name); - Boolean catenateNumbers = obj.isCatenateNumbers(); + Boolean catenateNumbers = obj.areNumbersCatenated(); wordDelimiterTokenFilter.setCatenateNumbers(catenateNumbers); if (obj.getProtectedWords() != null) { @@ -88,22 +88,22 @@ public static com.azure.search.documents.indexes.implementation.models.WordDelim Boolean stemEnglishPossessive = obj.isStemEnglishPossessive(); wordDelimiterTokenFilter.setStemEnglishPossessive(stemEnglishPossessive); - Boolean splitOnCaseChange = obj.isSplitOnCaseChange(); + Boolean splitOnCaseChange = obj.splitOnCaseChange(); wordDelimiterTokenFilter.setSplitOnCaseChange(splitOnCaseChange); Boolean generateWordParts = obj.generateWordParts(); wordDelimiterTokenFilter.setGenerateWordParts(generateWordParts); - Boolean splitOnNumerics = obj.isSplitOnNumerics(); + Boolean splitOnNumerics = obj.splitOnNumerics(); wordDelimiterTokenFilter.setSplitOnNumerics(splitOnNumerics); Boolean preserveOriginal = obj.isPreserveOriginal(); wordDelimiterTokenFilter.setPreserveOriginal(preserveOriginal); - Boolean catenateAll = obj.isCatenateAll(); + Boolean catenateAll = obj.catenateAll(); wordDelimiterTokenFilter.setCatenateAll(catenateAll); - Boolean catenateWords = obj.isCatenateWords(); + Boolean catenateWords = obj.areWordsCatenated(); wordDelimiterTokenFilter.setCatenateWords(catenateWords); return wordDelimiterTokenFilter; } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/CjkBigramTokenFilter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/CjkBigramTokenFilter.java index cda6522774d5..a139a42ac8c9 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/CjkBigramTokenFilter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/CjkBigramTokenFilter.java @@ -57,7 +57,7 @@ public CjkBigramTokenFilter setIgnoreScripts(List i * * @return the outputUnigrams value. */ - public Boolean isOutputUnigrams() { + public Boolean areOutputUnigrams() { return this.outputUnigrams; } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/CommonGramTokenFilter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/CommonGramTokenFilter.java index b4efb5c3ac75..9c84a0fbe444 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/CommonGramTokenFilter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/CommonGramTokenFilter.java @@ -29,7 +29,7 @@ public final class CommonGramTokenFilter extends TokenFilter { * insensitive. Default is false. */ @JsonProperty(value = "ignoreCase") - private Boolean ignoreCase; + private Boolean caseIgnored; /* * A value that indicates whether the token filter is in query mode. When @@ -38,7 +38,7 @@ public final class CommonGramTokenFilter extends TokenFilter { * false. */ @JsonProperty(value = "queryMode") - private Boolean useQueryMode; + private Boolean queryModeUsed; /** * Get the commonWords property: The set of common words. @@ -66,19 +66,19 @@ public CommonGramTokenFilter setCommonWords(List commonWords) { * * @return the ignoreCase value. */ - public Boolean isIgnoreCase() { - return this.ignoreCase; + public Boolean isCaseIgnored() { + return this.caseIgnored; } /** * Set the ignoreCase property: A value indicating whether common words * matching will be case insensitive. Default is false. * - * @param ignoreCase the ignoreCase value to set. + * @param caseIgnored the ignoreCase value to set. * @return the CommonGramTokenFilter object itself. */ - public CommonGramTokenFilter setIgnoreCase(Boolean ignoreCase) { - this.ignoreCase = ignoreCase; + public CommonGramTokenFilter setCaseIgnored(Boolean caseIgnored) { + this.caseIgnored = caseIgnored; return this; } @@ -90,8 +90,8 @@ public CommonGramTokenFilter setIgnoreCase(Boolean ignoreCase) { * * @return the useQueryMode value. */ - public Boolean isUseQueryMode() { - return this.useQueryMode; + public Boolean isQueryModeUsed() { + return this.queryModeUsed; } /** @@ -100,11 +100,11 @@ public Boolean isUseQueryMode() { * bigrams and then removes common words and single terms followed by a * common word. Default is false. * - * @param useQueryMode the useQueryMode value to set. + * @param queryModeUsed the useQueryMode value to set. * @return the CommonGramTokenFilter object itself. */ - public CommonGramTokenFilter setUseQueryMode(Boolean useQueryMode) { - this.useQueryMode = useQueryMode; + public CommonGramTokenFilter setQueryModeUsed(Boolean queryModeUsed) { + this.queryModeUsed = queryModeUsed; return this; } } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/DictionaryDecompounderTokenFilter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/DictionaryDecompounderTokenFilter.java index a19a8e80389c..f0ade27bf6f3 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/DictionaryDecompounderTokenFilter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/DictionaryDecompounderTokenFilter.java @@ -49,7 +49,7 @@ public final class DictionaryDecompounderTokenFilter extends TokenFilter { * the output. Default is false. */ @JsonProperty(value = "onlyLongestMatch") - private Boolean onlyLongestMatch; + private Boolean onlyLongestMatched; /** * Get the wordList property: The list of words to match against. @@ -143,19 +143,19 @@ public DictionaryDecompounderTokenFilter setMaxSubwordSize(Integer maxSubwordSiz * * @return the onlyLongestMatch value. */ - public Boolean isOnlyLongestMatch() { - return this.onlyLongestMatch; + public Boolean isOnlyLongestMatched() { + return this.onlyLongestMatched; } /** * Set the onlyLongestMatch property: A value indicating whether to add * only the longest matching subword to the output. Default is false. * - * @param onlyLongestMatch the onlyLongestMatch value to set. + * @param onlyLongestMatched the onlyLongestMatch value to set. * @return the DictionaryDecompounderTokenFilter object itself. */ - public DictionaryDecompounderTokenFilter setOnlyLongestMatch(Boolean onlyLongestMatch) { - this.onlyLongestMatch = onlyLongestMatch; + public DictionaryDecompounderTokenFilter setOnlyLongestMatched(Boolean onlyLongestMatched) { + this.onlyLongestMatched = onlyLongestMatched; return this; } } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/EntityRecognitionSkill.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/EntityRecognitionSkill.java index bcbcafdbd5e6..3373b734ae9d 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/EntityRecognitionSkill.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/EntityRecognitionSkill.java @@ -38,7 +38,7 @@ public final class EntityRecognitionSkill extends SearchIndexerSkill { * one of the pre-defined types will not be surfaced. */ @JsonProperty(value = "includeTypelessEntities") - private Boolean includeTypelessEntities; + private Boolean typelessEntitiesIncluded; /* * A value between 0 and 1 that be used to only include entities whose @@ -105,8 +105,8 @@ public EntityRecognitionSkill setDefaultLanguageCode(EntityRecognitionSkillLangu * * @return the includeTypelessEntities value. */ - public Boolean isIncludeTypelessEntities() { - return this.includeTypelessEntities; + public Boolean areTypelessEntitiesIncluded() { + return this.typelessEntitiesIncluded; } /** @@ -116,11 +116,11 @@ public Boolean isIncludeTypelessEntities() { * false, entities which don't conform to one of the pre-defined types will * not be surfaced. * - * @param includeTypelessEntities the includeTypelessEntities value to set. + * @param typelessEntitiesIncluded the includeTypelessEntities value to set. * @return the EntityRecognitionSkill object itself. */ - public EntityRecognitionSkill setIncludeTypelessEntities(Boolean includeTypelessEntities) { - this.includeTypelessEntities = includeTypelessEntities; + public EntityRecognitionSkill setTypelessEntitiesIncluded(Boolean typelessEntitiesIncluded) { + this.typelessEntitiesIncluded = typelessEntitiesIncluded; return this; } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/KeepTokenFilter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/KeepTokenFilter.java index 8e4b4010cda2..8f9debb1b741 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/KeepTokenFilter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/KeepTokenFilter.java @@ -56,7 +56,7 @@ public KeepTokenFilter setKeepWords(List keepWords) { * * @return the lowerCaseKeepWords value. */ - public Boolean isLowerCaseKeepWords() { + public Boolean areLowerCaseKeepWords() { return this.lowerCaseKeepWords; } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/KeywordMarkerTokenFilter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/KeywordMarkerTokenFilter.java index a6cc2a301dee..259231f1fb92 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/KeywordMarkerTokenFilter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/KeywordMarkerTokenFilter.java @@ -28,7 +28,7 @@ public final class KeywordMarkerTokenFilter extends TokenFilter { * converted to lower case first. Default is false. */ @JsonProperty(value = "ignoreCase") - private Boolean ignoreCase; + private Boolean caseIgnored; /** * Get the keywords property: A list of words to mark as keywords. @@ -56,19 +56,19 @@ public KeywordMarkerTokenFilter setKeywords(List keywords) { * * @return the ignoreCase value. */ - public Boolean isIgnoreCase() { - return this.ignoreCase; + public Boolean isCaseIgnored() { + return this.caseIgnored; } /** * Set the ignoreCase property: A value indicating whether to ignore case. * If true, all words are converted to lower case first. Default is false. * - * @param ignoreCase the ignoreCase value to set. + * @param caseIgnored the ignoreCase value to set. * @return the KeywordMarkerTokenFilter object itself. */ - public KeywordMarkerTokenFilter setIgnoreCase(Boolean ignoreCase) { - this.ignoreCase = ignoreCase; + public KeywordMarkerTokenFilter setCaseIgnored(Boolean caseIgnored) { + this.caseIgnored = caseIgnored; return this; } } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/LimitTokenFilter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/LimitTokenFilter.java index 8f88a47b700d..f61bf8232bd3 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/LimitTokenFilter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/LimitTokenFilter.java @@ -27,7 +27,7 @@ public final class LimitTokenFilter extends TokenFilter { * even if maxTokenCount is reached. Default is false. */ @JsonProperty(value = "consumeAllTokens") - private Boolean consumeAllTokens; + private Boolean allTokensConsumed; /** * Get the maxTokenCount property: The maximum number of tokens to produce. @@ -58,8 +58,8 @@ public LimitTokenFilter setMaxTokenCount(Integer maxTokenCount) { * * @return the consumeAllTokens value. */ - public Boolean isConsumeAllTokens() { - return this.consumeAllTokens; + public Boolean areAllTokensConsumed() { + return this.allTokensConsumed; } /** @@ -67,11 +67,11 @@ public Boolean isConsumeAllTokens() { * from the input must be consumed even if maxTokenCount is reached. * Default is false. * - * @param consumeAllTokens the consumeAllTokens value to set. + * @param allTokensConsumed the consumeAllTokens value to set. * @return the LimitTokenFilter object itself. */ - public LimitTokenFilter setConsumeAllTokens(Boolean consumeAllTokens) { - this.consumeAllTokens = consumeAllTokens; + public LimitTokenFilter setAllTokensConsumed(Boolean allTokensConsumed) { + this.allTokensConsumed = allTokensConsumed; return this; } } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/MicrosoftLanguageStemmingTokenizer.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/MicrosoftLanguageStemmingTokenizer.java index 91a21baa045b..0194c8bf0dba 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/MicrosoftLanguageStemmingTokenizer.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/MicrosoftLanguageStemmingTokenizer.java @@ -32,7 +32,7 @@ public final class MicrosoftLanguageStemmingTokenizer extends LexicalTokenizer { * Default is false. */ @JsonProperty(value = "isSearchTokenizer") - private Boolean isSearchTokenizer; + private Boolean isSearchTokenizerUsed; /* * The language to use. The default is English. Possible values include: @@ -84,7 +84,7 @@ public MicrosoftLanguageStemmingTokenizer setMaxTokenLength(Integer maxTokenLeng * @return the isSearchTokenizer value. */ public Boolean isSearchTokenizer() { - return this.isSearchTokenizer; + return this.isSearchTokenizerUsed; } /** @@ -92,11 +92,11 @@ public Boolean isSearchTokenizer() { * is used. Set to true if used as the search tokenizer, set to false if * used as the indexing tokenizer. Default is false. * - * @param isSearchTokenizer the isSearchTokenizer value to set. + * @param isSearchTokenizerUsed the isSearchTokenizer value to set. * @return the MicrosoftLanguageStemmingTokenizer object itself. */ - public MicrosoftLanguageStemmingTokenizer setIsSearchTokenizer(Boolean isSearchTokenizer) { - this.isSearchTokenizer = isSearchTokenizer; + public MicrosoftLanguageStemmingTokenizer setIsSearchTokenizerUsed(Boolean isSearchTokenizerUsed) { + this.isSearchTokenizerUsed = isSearchTokenizerUsed; return this; } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/OcrSkill.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/OcrSkill.java index 90b96fefa34e..aa35f8b0b865 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/OcrSkill.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/OcrSkill.java @@ -65,7 +65,7 @@ public OcrSkill setDefaultLanguageCode(OcrSkillLanguage defaultLanguageCode) { * * @return the shouldDetectOrientation value. */ - public Boolean shouldDetectOrientation() { + public Boolean setShouldDetectOrientation() { return this.shouldDetectOrientation; } @@ -76,7 +76,7 @@ public Boolean shouldDetectOrientation() { * @param shouldDetectOrientation the shouldDetectOrientation value to set. * @return the OcrSkill object itself. */ - public OcrSkill shouldDetectOrientation(Boolean shouldDetectOrientation) { + public OcrSkill setShouldDetectOrientation(Boolean shouldDetectOrientation) { this.shouldDetectOrientation = shouldDetectOrientation; return this; } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/PathHierarchyTokenizer.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/PathHierarchyTokenizer.java index d74650a2add5..a0f45d6dda25 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/PathHierarchyTokenizer.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/PathHierarchyTokenizer.java @@ -39,7 +39,7 @@ public final class PathHierarchyTokenizer extends LexicalTokenizer { * is false. */ @JsonProperty(value = "reverse") - private Boolean reverseTokenOrder; + private Boolean tokenOrderReversed; /* * The number of initial tokens to skip. Default is 0. @@ -119,19 +119,19 @@ public PathHierarchyTokenizer setMaxTokenLength(Integer maxTokenLength) { * * @return the reverseTokenOrder value. */ - public Boolean isReverseTokenOrder() { - return this.reverseTokenOrder; + public Boolean isTokenOrderReversed() { + return this.tokenOrderReversed; } /** * Set the reverseTokenOrder property: A value indicating whether to * generate tokens in reverse order. Default is false. * - * @param reverseTokenOrder the reverseTokenOrder value to set. + * @param tokenOrderReversed the reverseTokenOrder value to set. * @return the PathHierarchyTokenizerV2 object itself. */ - public PathHierarchyTokenizer setReverseTokenOrder(Boolean reverseTokenOrder) { - this.reverseTokenOrder = reverseTokenOrder; + public PathHierarchyTokenizer setTokenOrderReversed(Boolean tokenOrderReversed) { + this.tokenOrderReversed = tokenOrderReversed; return this; } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/PatternAnalyzer.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/PatternAnalyzer.java index 5f99dada875f..7e324c36f1b1 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/PatternAnalyzer.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/PatternAnalyzer.java @@ -49,7 +49,7 @@ public final class PatternAnalyzer extends LexicalAnalyzer { * * @return the lowerCaseTerms value. */ - public Boolean isLowerCaseTerms() { + public Boolean areLowerCaseTerms() { return this.lowerCaseTerms; } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/PhoneticTokenFilter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/PhoneticTokenFilter.java index 366fdf4d2438..6778beaa2e54 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/PhoneticTokenFilter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/PhoneticTokenFilter.java @@ -30,7 +30,7 @@ public final class PhoneticTokenFilter extends TokenFilter { * tokens. If false, encoded tokens are added as synonyms. Default is true. */ @JsonProperty(value = "replace") - private Boolean replaceOriginalTokens; + private Boolean originalTokensReplaced; /** * Get the encoder property: The phonetic encoder to use. Default is @@ -65,8 +65,8 @@ public PhoneticTokenFilter setEncoder(PhoneticEncoder encoder) { * * @return the replaceOriginalTokens value. */ - public Boolean isReplaceOriginalTokens() { - return this.replaceOriginalTokens; + public Boolean areOriginalTokensReplaced() { + return this.originalTokensReplaced; } /** @@ -74,11 +74,11 @@ public Boolean isReplaceOriginalTokens() { * encoded tokens should replace original tokens. If false, encoded tokens * are added as synonyms. Default is true. * - * @param replaceOriginalTokens the replaceOriginalTokens value to set. + * @param originalTokensReplaced the replaceOriginalTokens value to set. * @return the PhoneticTokenFilter object itself. */ - public PhoneticTokenFilter setReplaceOriginalTokens(Boolean replaceOriginalTokens) { - this.replaceOriginalTokens = replaceOriginalTokens; + public PhoneticTokenFilter setOriginalTokensReplaced(Boolean originalTokensReplaced) { + this.originalTokensReplaced = originalTokensReplaced; return this; } } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/ShingleTokenFilter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/ShingleTokenFilter.java index fe6952f56440..13a0465b501a 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/ShingleTokenFilter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/ShingleTokenFilter.java @@ -109,7 +109,7 @@ public ShingleTokenFilter setMinShingleSize(Integer minShingleSize) { * * @return the outputUnigrams value. */ - public Boolean isOutputUnigrams() { + public Boolean areOutputUnigrams() { return this.outputUnigrams; } @@ -134,7 +134,7 @@ public ShingleTokenFilter setOutputUnigrams(Boolean outputUnigrams) { * * @return the outputUnigramsIfNoShingles value. */ - public Boolean isOutputUnigramsIfNoShingles() { + public Boolean areOutputUnigramsIfNoShingles() { return this.outputUnigramsIfNoShingles; } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/StopwordsTokenFilter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/StopwordsTokenFilter.java index ebf7045df3ea..b23386f39fd0 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/StopwordsTokenFilter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/StopwordsTokenFilter.java @@ -41,14 +41,14 @@ public final class StopwordsTokenFilter extends TokenFilter { * converted to lower case first. Default is false. */ @JsonProperty(value = "ignoreCase") - private Boolean ignoreCase; + private Boolean caseIgnored; /* * A value indicating whether to ignore the last search term if it's a stop * word. Default is true. */ @JsonProperty(value = "removeTrailing") - private Boolean removeTrailingStopWords; + private Boolean trailingStopWordsRemoved; /** * Get the stopwords property: The list of stopwords. This property and the @@ -112,19 +112,19 @@ public StopwordsTokenFilter setStopwordsList(StopwordsList stopwordsList) { * * @return the ignoreCase value. */ - public Boolean isIgnoreCase() { - return this.ignoreCase; + public Boolean isCaseIgnored() { + return this.caseIgnored; } /** * Set the ignoreCase property: A value indicating whether to ignore case. * If true, all words are converted to lower case first. Default is false. * - * @param ignoreCase the ignoreCase value to set. + * @param caseIgnored the ignoreCase value to set. * @return the StopwordsTokenFilter object itself. */ - public StopwordsTokenFilter setIgnoreCase(Boolean ignoreCase) { - this.ignoreCase = ignoreCase; + public StopwordsTokenFilter setCaseIgnored(Boolean caseIgnored) { + this.caseIgnored = caseIgnored; return this; } @@ -134,19 +134,19 @@ public StopwordsTokenFilter setIgnoreCase(Boolean ignoreCase) { * * @return the removeTrailingStopWords value. */ - public Boolean isRemoveTrailingStopWords() { - return this.removeTrailingStopWords; + public Boolean areTrailingStopWordsRemoved() { + return this.trailingStopWordsRemoved; } /** * Set the removeTrailingStopWords property: A value indicating whether to * ignore the last search term if it's a stop word. Default is true. * - * @param removeTrailingStopWords the removeTrailingStopWords value to set. + * @param trailingStopWordsRemoved the removeTrailingStopWords value to set. * @return the StopwordsTokenFilter object itself. */ - public StopwordsTokenFilter setRemoveTrailingStopWords(Boolean removeTrailingStopWords) { - this.removeTrailingStopWords = removeTrailingStopWords; + public StopwordsTokenFilter setTrailingStopWordsRemoved(Boolean trailingStopWordsRemoved) { + this.trailingStopWordsRemoved = trailingStopWordsRemoved; return this; } } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SynonymTokenFilter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SynonymTokenFilter.java index a2d531021ade..112d47d61f59 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SynonymTokenFilter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SynonymTokenFilter.java @@ -32,7 +32,7 @@ public final class SynonymTokenFilter extends TokenFilter { * false. */ @JsonProperty(value = "ignoreCase") - private Boolean ignoreCase; + private Boolean caseIgnored; /* * A value indicating whether all words in the list of synonyms (if => @@ -84,19 +84,19 @@ public SynonymTokenFilter setSynonyms(List synonyms) { * * @return the ignoreCase value. */ - public Boolean isIgnoreCase() { - return this.ignoreCase; + public Boolean isCaseIgnored() { + return this.caseIgnored; } /** * Set the ignoreCase property: A value indicating whether to case-fold * input for matching. Default is false. * - * @param ignoreCase the ignoreCase value to set. + * @param caseIgnored the ignoreCase value to set. * @return the SynonymTokenFilter object itself. */ - public SynonymTokenFilter setIgnoreCase(Boolean ignoreCase) { - this.ignoreCase = ignoreCase; + public SynonymTokenFilter setCaseIgnored(Boolean caseIgnored) { + this.caseIgnored = caseIgnored; return this; } @@ -113,7 +113,7 @@ public SynonymTokenFilter setIgnoreCase(Boolean ignoreCase) { * * @return the expand value. */ - public Boolean isExpand() { + public Boolean getExpand() { return this.expand; } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/WordDelimiterTokenFilter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/WordDelimiterTokenFilter.java index 8da0b898954b..3f10c290a5cf 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/WordDelimiterTokenFilter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/WordDelimiterTokenFilter.java @@ -37,7 +37,7 @@ public final class WordDelimiterTokenFilter extends TokenFilter { * "AzureSearch". Default is false. */ @JsonProperty(value = "catenateWords") - private Boolean catenateWords; + private Boolean wordsCatenated; /* * A value indicating whether maximum runs of number parts will be @@ -45,7 +45,7 @@ public final class WordDelimiterTokenFilter extends TokenFilter { * Default is false. */ @JsonProperty(value = "catenateNumbers") - private Boolean catenateNumbers; + private Boolean numbersCatenated; /* * A value indicating whether all subword parts will be catenated. For @@ -144,8 +144,8 @@ public WordDelimiterTokenFilter setGenerateNumberParts(Boolean generateNumberPar * * @return the catenateWords value. */ - public Boolean isCatenateWords() { - return this.catenateWords; + public Boolean areWordsCatenated() { + return this.wordsCatenated; } /** @@ -153,11 +153,11 @@ public Boolean isCatenateWords() { * of word parts will be catenated. For example, if this is set to true, * "Azure-Search" becomes "AzureSearch". Default is false. * - * @param catenateWords the catenateWords value to set. + * @param wordsCatenated the catenateWords value to set. * @return the WordDelimiterTokenFilter object itself. */ - public WordDelimiterTokenFilter setCatenateWords(Boolean catenateWords) { - this.catenateWords = catenateWords; + public WordDelimiterTokenFilter setWordsCatenated(Boolean wordsCatenated) { + this.wordsCatenated = wordsCatenated; return this; } @@ -168,8 +168,8 @@ public WordDelimiterTokenFilter setCatenateWords(Boolean catenateWords) { * * @return the catenateNumbers value. */ - public Boolean isCatenateNumbers() { - return this.catenateNumbers; + public Boolean areNumbersCatenated() { + return this.numbersCatenated; } /** @@ -177,11 +177,11 @@ public Boolean isCatenateNumbers() { * runs of number parts will be catenated. For example, if this is set to * true, "1-2" becomes "12". Default is false. * - * @param catenateNumbers the catenateNumbers value to set. + * @param numbersCatenated the catenateNumbers value to set. * @return the WordDelimiterTokenFilter object itself. */ - public WordDelimiterTokenFilter setCatenateNumbers(Boolean catenateNumbers) { - this.catenateNumbers = catenateNumbers; + public WordDelimiterTokenFilter setNumbersCatenated(Boolean numbersCatenated) { + this.numbersCatenated = numbersCatenated; return this; } @@ -192,7 +192,7 @@ public WordDelimiterTokenFilter setCatenateNumbers(Boolean catenateNumbers) { * * @return the catenateAll value. */ - public Boolean isCatenateAll() { + public Boolean catenateAll() { return this.catenateAll; } @@ -216,7 +216,7 @@ public WordDelimiterTokenFilter setCatenateAll(Boolean catenateAll) { * * @return the splitOnCaseChange value. */ - public Boolean isSplitOnCaseChange() { + public Boolean splitOnCaseChange() { return this.splitOnCaseChange; } @@ -262,7 +262,7 @@ public WordDelimiterTokenFilter setPreserveOriginal(Boolean preserveOriginal) { * * @return the splitOnNumerics value. */ - public Boolean isSplitOnNumerics() { + public Boolean splitOnNumerics() { return this.splitOnNumerics; } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/AutocompleteOptions.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/AutocompleteOptions.java index 47c3e4c0ee0e..37bf316d380b 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/AutocompleteOptions.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/AutocompleteOptions.java @@ -5,6 +5,7 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.Arrays; import java.util.List; @@ -249,7 +250,7 @@ public List getSearchFields() { * querying for auto-completed terms. Target fields must be included in the * specified suggester. * - * @param searchFields the searchFields value to set. + * @param searchFields the searchField names to set. * @return the AutocompleteOptions object itself. */ public AutocompleteOptions setSearchFields(String... searchFields) { diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/RequestOptions.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/RequestOptions.java index c7aa120cf5b9..3e941bca0ced 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/RequestOptions.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/RequestOptions.java @@ -15,8 +15,8 @@ public final class RequestOptions { /* * The tracking ID sent with the request to help with debugging. */ - @JsonProperty(value = "") - private UUID xMsClientRequestId; + @JsonProperty(value = "xMsClientRequestId") + private UUID clientRequestId; /** * Get the xMsClientRequestId property: The tracking ID sent with the @@ -24,19 +24,19 @@ public final class RequestOptions { * * @return the xMsClientRequestId value. */ - public UUID getXMsClientRequestId() { - return this.xMsClientRequestId; + public UUID getClientRequestId() { + return this.clientRequestId; } /** - * Set the xMsClientRequestId property: The tracking ID sent with the + * Set the clientRequestId property: The tracking ID sent with the * request to help with debugging. * - * @param xMsClientRequestId the xMsClientRequestId value to set. + * @param clientRequestId the clientRequestId value to set. * @return the RequestOptions object itself. */ - public RequestOptions setXMsClientRequestId(UUID xMsClientRequestId) { - this.xMsClientRequestId = xMsClientRequestId; + public RequestOptions setClientRequestId(UUID clientRequestId) { + this.clientRequestId = clientRequestId; return this; } } diff --git a/sdk/search/azure-search-documents/src/samples/java/com/azure/search/documents/AutoCompleteExample.java b/sdk/search/azure-search-documents/src/samples/java/com/azure/search/documents/AutoCompleteExample.java index d02889222eb5..023018319a3b 100644 --- a/sdk/search/azure-search-documents/src/samples/java/com/azure/search/documents/AutoCompleteExample.java +++ b/sdk/search/azure-search-documents/src/samples/java/com/azure/search/documents/AutoCompleteExample.java @@ -47,7 +47,7 @@ private static void autoCompleteWithOneTermContext(SearchClient searchClient) { AutocompleteMode.ONE_TERM_WITH_CONTEXT); RequestOptions requestOptions = new RequestOptions() - .setXMsClientRequestId(UUID.randomUUID()); + .setClientRequestId(UUID.randomUUID()); PagedIterableBase results = searchClient.autocomplete("coffee m", "sg", params, requestOptions, Context.NONE); @@ -69,7 +69,7 @@ private static void autoCompleteWithHighlighting(SearchClient searchClient) { .setHighlightPostTag(""); RequestOptions requestOptions = new RequestOptions() - .setXMsClientRequestId(UUID.randomUUID()); + .setClientRequestId(UUID.randomUUID()); PagedIterableBase results = searchClient.autocomplete("co", "sg", params, requestOptions, Context.NONE); @@ -90,7 +90,7 @@ private static void autoCompleteWithFilterAndFuzzy(SearchClient searchClient) { .setFilter("HotelId ne '6' and Category eq 'Budget'"); RequestOptions requestOptions = new RequestOptions() - .setXMsClientRequestId(UUID.randomUUID()); + .setClientRequestId(UUID.randomUUID()); PagedIterableBase results = searchClient.autocomplete("su", "sg", params, requestOptions, Context.NONE); diff --git a/sdk/search/azure-search-documents/src/samples/java/com/azure/search/documents/indexes/CreateSkillsetExample.java b/sdk/search/azure-search-documents/src/samples/java/com/azure/search/documents/indexes/CreateSkillsetExample.java index 6c82b0468c41..6eaea18707e9 100644 --- a/sdk/search/azure-search-documents/src/samples/java/com/azure/search/documents/indexes/CreateSkillsetExample.java +++ b/sdk/search/azure-search-documents/src/samples/java/com/azure/search/documents/indexes/CreateSkillsetExample.java @@ -60,7 +60,7 @@ private static void createOcrSkillset(SearchIndexerClient searchIndexerClient) { List skills = Collections.singletonList( new OcrSkill() - .shouldDetectOrientation(true) + .setShouldDetectOrientation(true) .setDefaultLanguageCode(null) .setName("myocr") .setDescription("Extracts text (plain and structured) from image.") diff --git a/sdk/search/azure-search-documents/src/test/java/com/azure/search/documents/TestHelpers.java b/sdk/search/azure-search-documents/src/test/java/com/azure/search/documents/TestHelpers.java index 468fa9f8bc13..4114052fddda 100644 --- a/sdk/search/azure-search-documents/src/test/java/com/azure/search/documents/TestHelpers.java +++ b/sdk/search/azure-search-documents/src/test/java/com/azure/search/documents/TestHelpers.java @@ -175,7 +175,7 @@ private static void verifyHttpResponseError(Throwable ex, int statusCode, String } public static RequestOptions generateRequestOptions() { - return new RequestOptions().setXMsClientRequestId(UUID.randomUUID()); + return new RequestOptions().setClientRequestId(UUID.randomUUID()); } public static void waitForIndexing() { diff --git a/sdk/search/azure-search-documents/src/test/java/com/azure/search/documents/indexes/CustomAnalyzerSyncTests.java b/sdk/search/azure-search-documents/src/test/java/com/azure/search/documents/indexes/CustomAnalyzerSyncTests.java index af1ca999fc53..50cb3924ee33 100644 --- a/sdk/search/azure-search-documents/src/test/java/com/azure/search/documents/indexes/CustomAnalyzerSyncTests.java +++ b/sdk/search/azure-search-documents/src/test/java/com/azure/search/documents/indexes/CustomAnalyzerSyncTests.java @@ -715,7 +715,7 @@ List prepareIndexesWithAllAnalysisComponentOptions() { Arrays.stream(MicrosoftStemmingTokenizerLanguage.values()) .map(mtl -> new MicrosoftLanguageStemmingTokenizer() .setMaxTokenLength(200) - .setIsSearchTokenizer(false) + .setIsSearchTokenizerUsed(false) .setLanguage(mtl) .setName(generateName()) ) @@ -743,7 +743,7 @@ List prepareIndexesWithAllAnalysisComponentOptions() { Arrays.stream(PhoneticEncoder.values()) .map(pe -> new PhoneticTokenFilter() .setEncoder(pe) - .setReplaceOriginalTokens(false) + .setOriginalTokensReplaced(false) .setName(generateName()) ) .collect(Collectors.toList()) @@ -768,8 +768,8 @@ List prepareIndexesWithAllAnalysisComponentOptions() { Arrays.stream(StopwordsList.values()) .map(l -> new StopwordsTokenFilter() .setStopwordsList(l) - .setIgnoreCase(false) - .setRemoveTrailingStopWords(true) + .setCaseIgnored(false) + .setTrailingStopWordsRemoved(true) .setName(generateName()) ) .collect(Collectors.toList()) @@ -957,7 +957,7 @@ SearchIndex prepareIndexWithAllAnalysisComponentTypes() { .setName(generateName()), new MicrosoftLanguageStemmingTokenizer() .setMaxTokenLength(100) - .setIsSearchTokenizer(true) + .setIsSearchTokenizerUsed(true) .setLanguage(MicrosoftStemmingTokenizerLanguage.CROATIAN) .setName(generateName()), new MicrosoftLanguageTokenizer() @@ -969,7 +969,7 @@ SearchIndex prepareIndexWithAllAnalysisComponentTypes() { .setDelimiter(":") .setReplacement("_") .setMaxTokenLength(300) - .setReverseTokenOrder(true) + .setTokenOrderReversed(true) .setNumberOfTokensToSkip(2) .setName(generateName()), new PatternTokenizer() @@ -1000,8 +1000,8 @@ SearchIndex prepareIndexWithAllAnalysisComponentTypes() { .setName(generateName()), new CommonGramTokenFilter() .setCommonWords(Arrays.asList("hello", "goodbye")) - .setIgnoreCase(true) - .setUseQueryMode(true) + .setCaseIgnored(true) + .setQueryModeUsed(true) .setName(generateName()), new CommonGramTokenFilter() .setCommonWords(Collections.singletonList("at")) @@ -1011,7 +1011,7 @@ SearchIndex prepareIndexWithAllAnalysisComponentTypes() { .setMinWordSize(10) .setMinSubwordSize(5) .setMaxSubwordSize(13) - .setOnlyLongestMatch(true) + .setOnlyLongestMatched(true) .setName(generateName()), new EdgeNGramTokenFilter() .setMinGram(2) @@ -1041,7 +1041,7 @@ SearchIndex prepareIndexWithAllAnalysisComponentTypes() { .setName(generateName()), new LimitTokenFilter() .setMaxTokenCount(10) - .setConsumeAllTokens(true) + .setAllTokensConsumed(true) .setName(generateName()), new NGramTokenFilter() .setMinGram(2) @@ -1057,7 +1057,7 @@ SearchIndex prepareIndexWithAllAnalysisComponentTypes() { .setName(generateName()), new PhoneticTokenFilter() .setEncoder(PhoneticEncoder.SOUNDEX) - .setReplaceOriginalTokens(false) + .setOriginalTokensReplaced(false) .setName(generateName()), new ShingleTokenFilter() .setMaxShingleSize(10) @@ -1078,17 +1078,17 @@ SearchIndex prepareIndexWithAllAnalysisComponentTypes() { .setName(generateName()), new StopwordsTokenFilter() .setStopwords(Arrays.asList("a", "the")) - .setIgnoreCase(true) - .setRemoveTrailingStopWords(false) + .setCaseIgnored(true) + .setTrailingStopWordsRemoved(false) .setName(generateName()), new StopwordsTokenFilter() .setStopwordsList(StopwordsList.ITALIAN) - .setIgnoreCase(true) - .setRemoveTrailingStopWords(false) + .setCaseIgnored(true) + .setTrailingStopWordsRemoved(false) .setName(generateName()), new SynonymTokenFilter() .setSynonyms(Collections.singletonList("great, good")) - .setIgnoreCase(true) + .setCaseIgnored(true) .setExpand(false) .setName(generateName()), new TruncateTokenFilter() @@ -1102,8 +1102,8 @@ SearchIndex prepareIndexWithAllAnalysisComponentTypes() { new WordDelimiterTokenFilter() .setGenerateWordParts(false) .setGenerateNumberParts(false) - .setCatenateWords(true) - .setCatenateNumbers(true) + .setWordsCatenated(true) + .setNumbersCatenated(true) .setCatenateAll(true) .setSplitOnCaseChange(false) .setPreserveOriginal(true) @@ -1220,7 +1220,7 @@ SearchIndex createExpectedIndexWithSpecialDefaults(SearchIndex index) { .setName(generateSimpleName(i++)), new MicrosoftLanguageStemmingTokenizer() .setMaxTokenLength(255) - .setIsSearchTokenizer(false) + .setIsSearchTokenizerUsed(false) .setLanguage(MicrosoftStemmingTokenizerLanguage.ENGLISH) .setName(generateSimpleName(i++)), new MicrosoftLanguageTokenizer() @@ -1272,7 +1272,7 @@ SearchIndex createExpectedIndexWithSpecialDefaults(SearchIndex index) { .setName(generateSimpleName(i++)), new PhoneticTokenFilter() .setEncoder(PhoneticEncoder.METAPHONE) - .setReplaceOriginalTokens(true) + .setOriginalTokensReplaced(true) .setName(generateSimpleName(i++)), new ShingleTokenFilter() .setMaxShingleSize(2) @@ -1283,7 +1283,7 @@ SearchIndex createExpectedIndexWithSpecialDefaults(SearchIndex index) { .setName(generateSimpleName(i++)), new StopwordsTokenFilter() .setStopwordsList(StopwordsList.ENGLISH) - .setRemoveTrailingStopWords(true) + .setTrailingStopWordsRemoved(true) .setName(generateSimpleName(i++)), new SynonymTokenFilter() .setExpand(true) diff --git a/sdk/search/azure-search-documents/src/test/java/com/azure/search/documents/indexes/IndexersManagementSyncTests.java b/sdk/search/azure-search-documents/src/test/java/com/azure/search/documents/indexes/IndexersManagementSyncTests.java index 7d393c3bfb14..84d483631551 100644 --- a/sdk/search/azure-search-documents/src/test/java/com/azure/search/documents/indexes/IndexersManagementSyncTests.java +++ b/sdk/search/azure-search-documents/src/test/java/com/azure/search/documents/indexes/IndexersManagementSyncTests.java @@ -647,7 +647,7 @@ SearchIndexerSkillset createSkillsetObject() { List skills = Collections.singletonList( new OcrSkill() - .shouldDetectOrientation(true) + .setShouldDetectOrientation(true) .setName("myocr") .setDescription("Tested OCR skill") .setContext("/document") diff --git a/sdk/search/azure-search-documents/src/test/java/com/azure/search/documents/indexes/SearchServiceSyncTests.java b/sdk/search/azure-search-documents/src/test/java/com/azure/search/documents/indexes/SearchServiceSyncTests.java index f4e3fdab30d8..9255c955a97d 100644 --- a/sdk/search/azure-search-documents/src/test/java/com/azure/search/documents/indexes/SearchServiceSyncTests.java +++ b/sdk/search/azure-search-documents/src/test/java/com/azure/search/documents/indexes/SearchServiceSyncTests.java @@ -38,7 +38,7 @@ public void getServiceStatsReturnsCorrectDefinitionWithResponse() { public void getServiceStatsReturnsRequestId() { SearchIndexClient serviceClient = getSearchIndexClientBuilder().buildClient(); - RequestOptions requestOptions = new RequestOptions().setXMsClientRequestId(UUID.randomUUID()); + RequestOptions requestOptions = new RequestOptions().setClientRequestId(UUID.randomUUID()); Response response = serviceClient.getServiceStatisticsWithResponse(requestOptions, Context.NONE); diff --git a/sdk/search/azure-search-documents/src/test/java/com/azure/search/documents/indexes/SkillsetManagementSyncTests.java b/sdk/search/azure-search-documents/src/test/java/com/azure/search/documents/indexes/SkillsetManagementSyncTests.java index 9521a27cdbe7..f92f7a15cdda 100644 --- a/sdk/search/azure-search-documents/src/test/java/com/azure/search/documents/indexes/SkillsetManagementSyncTests.java +++ b/sdk/search/azure-search-documents/src/test/java/com/azure/search/documents/indexes/SkillsetManagementSyncTests.java @@ -928,7 +928,7 @@ SearchIndexerSkillset createTestOcrSkillSet(int repeat) { skills.add(new OcrSkill() .setDefaultLanguageCode(OcrSkillLanguage.EN) - .shouldDetectOrientation(false) + .setShouldDetectOrientation(false) .setName("myocr-" + i) .setDescription("Tested OCR skill") .setContext(CONTEXT_VALUE) @@ -952,7 +952,7 @@ SearchIndexerSkillset createSkillsetWithOcrDefaultSettings(Boolean shouldDetectO List skills = Collections.singletonList( new OcrSkill() - .shouldDetectOrientation(shouldDetectOrientation) + .setShouldDetectOrientation(shouldDetectOrientation) .setName("myocr") .setDescription("Tested OCR skill") .setContext(CONTEXT_VALUE)