Skip to content

Commit

Permalink
fix(specs): Increase optionalWords visibility in docs (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#4559

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: gazconroy <gazconroyster@gmail.com>
  • Loading branch information
algolia-bot and gazconroy committed Mar 5, 2025
1 parent b2351bf commit 1b6e72b
Show file tree
Hide file tree
Showing 12 changed files with 61 additions and 41 deletions.
8 changes: 4 additions & 4 deletions src/main/scala/algoliasearch/api/AbtestingClient.scala
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class AbtestingClient(
execute[ABTestResponse](request, requestOptions)
}

/** This method allow you to send requests to the Algolia REST API.
/** This method lets you send requests to the Algolia REST API.
*
* @param path
* Path of the endpoint, anything after \"/1\" must be specified.
Expand All @@ -133,7 +133,7 @@ class AbtestingClient(
execute[T](request, requestOptions)
}

/** This method allow you to send requests to the Algolia REST API.
/** This method lets you send requests to the Algolia REST API.
*
* @param path
* Path of the endpoint, anything after \"/1\" must be specified.
Expand All @@ -156,7 +156,7 @@ class AbtestingClient(
execute[T](request, requestOptions)
}

/** This method allow you to send requests to the Algolia REST API.
/** This method lets you send requests to the Algolia REST API.
*
* @param path
* Path of the endpoint, anything after \"/1\" must be specified.
Expand All @@ -183,7 +183,7 @@ class AbtestingClient(
execute[T](request, requestOptions)
}

/** This method allow you to send requests to the Algolia REST API.
/** This method lets you send requests to the Algolia REST API.
*
* @param path
* Path of the endpoint, anything after \"/1\" must be specified.
Expand Down
8 changes: 4 additions & 4 deletions src/main/scala/algoliasearch/api/AnalyticsClient.scala
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class AnalyticsClient(
options = clientOptions
) {

/** This method allow you to send requests to the Algolia REST API.
/** This method lets you send requests to the Algolia REST API.
*
* @param path
* Path of the endpoint, anything after \"/1\" must be specified.
Expand All @@ -128,7 +128,7 @@ class AnalyticsClient(
execute[T](request, requestOptions)
}

/** This method allow you to send requests to the Algolia REST API.
/** This method lets you send requests to the Algolia REST API.
*
* @param path
* Path of the endpoint, anything after \"/1\" must be specified.
Expand All @@ -151,7 +151,7 @@ class AnalyticsClient(
execute[T](request, requestOptions)
}

/** This method allow you to send requests to the Algolia REST API.
/** This method lets you send requests to the Algolia REST API.
*
* @param path
* Path of the endpoint, anything after \"/1\" must be specified.
Expand All @@ -178,7 +178,7 @@ class AnalyticsClient(
execute[T](request, requestOptions)
}

/** This method allow you to send requests to the Algolia REST API.
/** This method lets you send requests to the Algolia REST API.
*
* @param path
* Path of the endpoint, anything after \"/1\" must be specified.
Expand Down
8 changes: 4 additions & 4 deletions src/main/scala/algoliasearch/api/IngestionClient.scala
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ class IngestionClient(
execute[TransformationCreateResponse](request, requestOptions)
}

/** This method allow you to send requests to the Algolia REST API.
/** This method lets you send requests to the Algolia REST API.
*
* @param path
* Path of the endpoint, anything after \"/1\" must be specified.
Expand All @@ -307,7 +307,7 @@ class IngestionClient(
execute[T](request, requestOptions)
}

/** This method allow you to send requests to the Algolia REST API.
/** This method lets you send requests to the Algolia REST API.
*
* @param path
* Path of the endpoint, anything after \"/1\" must be specified.
Expand All @@ -330,7 +330,7 @@ class IngestionClient(
execute[T](request, requestOptions)
}

/** This method allow you to send requests to the Algolia REST API.
/** This method lets you send requests to the Algolia REST API.
*
* @param path
* Path of the endpoint, anything after \"/1\" must be specified.
Expand All @@ -357,7 +357,7 @@ class IngestionClient(
execute[T](request, requestOptions)
}

/** This method allow you to send requests to the Algolia REST API.
/** This method lets you send requests to the Algolia REST API.
*
* @param path
* Path of the endpoint, anything after \"/1\" must be specified.
Expand Down
8 changes: 4 additions & 4 deletions src/main/scala/algoliasearch/api/InsightsClient.scala
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class InsightsClient(
options = clientOptions
) {

/** This method allow you to send requests to the Algolia REST API.
/** This method lets you send requests to the Algolia REST API.
*
* @param path
* Path of the endpoint, anything after \"/1\" must be specified.
Expand All @@ -108,7 +108,7 @@ class InsightsClient(
execute[T](request, requestOptions)
}

/** This method allow you to send requests to the Algolia REST API.
/** This method lets you send requests to the Algolia REST API.
*
* @param path
* Path of the endpoint, anything after \"/1\" must be specified.
Expand All @@ -131,7 +131,7 @@ class InsightsClient(
execute[T](request, requestOptions)
}

/** This method allow you to send requests to the Algolia REST API.
/** This method lets you send requests to the Algolia REST API.
*
* @param path
* Path of the endpoint, anything after \"/1\" must be specified.
Expand All @@ -158,7 +158,7 @@ class InsightsClient(
execute[T](request, requestOptions)
}

/** This method allow you to send requests to the Algolia REST API.
/** This method lets you send requests to the Algolia REST API.
*
* @param path
* Path of the endpoint, anything after \"/1\" must be specified.
Expand Down
8 changes: 4 additions & 4 deletions src/main/scala/algoliasearch/api/MonitoringClient.scala
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class MonitoringClient(
options = clientOptions
) {

/** This method allow you to send requests to the Algolia REST API.
/** This method lets you send requests to the Algolia REST API.
*
* @param path
* Path of the endpoint, anything after \"/1\" must be specified.
Expand All @@ -109,7 +109,7 @@ class MonitoringClient(
execute[T](request, requestOptions)
}

/** This method allow you to send requests to the Algolia REST API.
/** This method lets you send requests to the Algolia REST API.
*
* @param path
* Path of the endpoint, anything after \"/1\" must be specified.
Expand All @@ -132,7 +132,7 @@ class MonitoringClient(
execute[T](request, requestOptions)
}

/** This method allow you to send requests to the Algolia REST API.
/** This method lets you send requests to the Algolia REST API.
*
* @param path
* Path of the endpoint, anything after \"/1\" must be specified.
Expand All @@ -159,7 +159,7 @@ class MonitoringClient(
execute[T](request, requestOptions)
}

/** This method allow you to send requests to the Algolia REST API.
/** This method lets you send requests to the Algolia REST API.
*
* @param path
* Path of the endpoint, anything after \"/1\" must be specified.
Expand Down
8 changes: 4 additions & 4 deletions src/main/scala/algoliasearch/api/PersonalizationClient.scala
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class PersonalizationClient(
options = clientOptions
) {

/** This method allow you to send requests to the Algolia REST API.
/** This method lets you send requests to the Algolia REST API.
*
* @param path
* Path of the endpoint, anything after \"/1\" must be specified.
Expand All @@ -111,7 +111,7 @@ class PersonalizationClient(
execute[T](request, requestOptions)
}

/** This method allow you to send requests to the Algolia REST API.
/** This method lets you send requests to the Algolia REST API.
*
* @param path
* Path of the endpoint, anything after \"/1\" must be specified.
Expand All @@ -134,7 +134,7 @@ class PersonalizationClient(
execute[T](request, requestOptions)
}

/** This method allow you to send requests to the Algolia REST API.
/** This method lets you send requests to the Algolia REST API.
*
* @param path
* Path of the endpoint, anything after \"/1\" must be specified.
Expand All @@ -161,7 +161,7 @@ class PersonalizationClient(
execute[T](request, requestOptions)
}

/** This method allow you to send requests to the Algolia REST API.
/** This method lets you send requests to the Algolia REST API.
*
* @param path
* Path of the endpoint, anything after \"/1\" must be specified.
Expand Down
8 changes: 4 additions & 4 deletions src/main/scala/algoliasearch/api/QuerySuggestionsClient.scala
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class QuerySuggestionsClient(
execute[BaseResponse](request, requestOptions)
}

/** This method allow you to send requests to the Algolia REST API.
/** This method lets you send requests to the Algolia REST API.
*
* @param path
* Path of the endpoint, anything after \"/1\" must be specified.
Expand All @@ -135,7 +135,7 @@ class QuerySuggestionsClient(
execute[T](request, requestOptions)
}

/** This method allow you to send requests to the Algolia REST API.
/** This method lets you send requests to the Algolia REST API.
*
* @param path
* Path of the endpoint, anything after \"/1\" must be specified.
Expand All @@ -158,7 +158,7 @@ class QuerySuggestionsClient(
execute[T](request, requestOptions)
}

/** This method allow you to send requests to the Algolia REST API.
/** This method lets you send requests to the Algolia REST API.
*
* @param path
* Path of the endpoint, anything after \"/1\" must be specified.
Expand All @@ -185,7 +185,7 @@ class QuerySuggestionsClient(
execute[T](request, requestOptions)
}

/** This method allow you to send requests to the Algolia REST API.
/** This method lets you send requests to the Algolia REST API.
*
* @param path
* Path of the endpoint, anything after \"/1\" must be specified.
Expand Down
8 changes: 4 additions & 4 deletions src/main/scala/algoliasearch/api/RecommendClient.scala
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class RecommendClient(
execute[RecommendUpdatedAtResponse](request, requestOptions)
}

/** This method allow you to send requests to the Algolia REST API.
/** This method lets you send requests to the Algolia REST API.
*
* @param path
* Path of the endpoint, anything after \"/1\" must be specified.
Expand All @@ -151,7 +151,7 @@ class RecommendClient(
execute[T](request, requestOptions)
}

/** This method allow you to send requests to the Algolia REST API.
/** This method lets you send requests to the Algolia REST API.
*
* @param path
* Path of the endpoint, anything after \"/1\" must be specified.
Expand All @@ -174,7 +174,7 @@ class RecommendClient(
execute[T](request, requestOptions)
}

/** This method allow you to send requests to the Algolia REST API.
/** This method lets you send requests to the Algolia REST API.
*
* @param path
* Path of the endpoint, anything after \"/1\" must be specified.
Expand All @@ -201,7 +201,7 @@ class RecommendClient(
execute[T](request, requestOptions)
}

/** This method allow you to send requests to the Algolia REST API.
/** This method lets you send requests to the Algolia REST API.
*
* @param path
* Path of the endpoint, anything after \"/1\" must be specified.
Expand Down
8 changes: 4 additions & 4 deletions src/main/scala/algoliasearch/api/SearchClient.scala
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ class SearchClient(
execute[UpdatedAtResponse](request, requestOptions)
}

/** This method allow you to send requests to the Algolia REST API.
/** This method lets you send requests to the Algolia REST API.
*
* @param path
* Path of the endpoint, anything after \"/1\" must be specified.
Expand All @@ -460,7 +460,7 @@ class SearchClient(
execute[T](request, requestOptions)
}

/** This method allow you to send requests to the Algolia REST API.
/** This method lets you send requests to the Algolia REST API.
*
* @param path
* Path of the endpoint, anything after \"/1\" must be specified.
Expand All @@ -483,7 +483,7 @@ class SearchClient(
execute[T](request, requestOptions)
}

/** This method allow you to send requests to the Algolia REST API.
/** This method lets you send requests to the Algolia REST API.
*
* @param path
* Path of the endpoint, anything after \"/1\" must be specified.
Expand All @@ -510,7 +510,7 @@ class SearchClient(
execute[T](request, requestOptions)
}

/** This method allow you to send requests to the Algolia REST API.
/** This method lets you send requests to the Algolia REST API.
*
* @param path
* Path of the endpoint, anything after \"/1\" must be specified.
Expand Down
13 changes: 12 additions & 1 deletion src/main/scala/algoliasearch/recommend/OptionalWords.scala
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,18 @@ package algoliasearch.recommend

import org.json4s._

/** OptionalWords
/** Words that should be considered optional when found in the query. By default, records must match all words in the
* search query to be included in the search results. Adding optional words can help to increase the number of search
* results by running an additional search query that doesn't include the optional words. For example, if the search
* query is \"action video\" and \"video\" is an optional word, the search engine runs two queries. One for \"action
* video\" and one for \"action\". Records that match all words are ranked higher. For a search query with 4 or more
* words **and** all its words are optional, the number of matched words required for a record to be included in the
* search results increases for every 1,000 records: - If `optionalWords` has less than 10 words, the required number
* of matched words increases by 1: results 1 to 1,000 require 1 matched word, results 1,001 to 2000 need 2 matched
* words. - If `optionalWords` has 10 or more words, the number of required matched words increases by the number of
* optional words divided by 5 (rounded down). For example, with 18 optional words: results 1 to 1,000 require 1
* matched word, results 1,001 to 2000 need 4 matched words. For more information, see [Optional
* words](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/empty-or-insufficient-results/#creating-a-list-of-optional-words).
*/
sealed trait OptionalWords

Expand Down
4 changes: 1 addition & 3 deletions src/main/scala/algoliasearch/search/Log.scala
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
*/
package algoliasearch.search

import java.net.URI

import org.json4s._

/** Log
Expand Down Expand Up @@ -76,7 +74,7 @@ case class Log(
answerCode /* answer_code */: String,
queryBody /* query_body */: String,
answer: String,
url: URI,
url: String,
ip: String,
queryHeaders /* query_headers */: String,
sha1: String,
Expand Down
13 changes: 12 additions & 1 deletion src/main/scala/algoliasearch/search/OptionalWords.scala
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,18 @@ package algoliasearch.search

import org.json4s._

/** OptionalWords
/** Words that should be considered optional when found in the query. By default, records must match all words in the
* search query to be included in the search results. Adding optional words can help to increase the number of search
* results by running an additional search query that doesn't include the optional words. For example, if the search
* query is \"action video\" and \"video\" is an optional word, the search engine runs two queries. One for \"action
* video\" and one for \"action\". Records that match all words are ranked higher. For a search query with 4 or more
* words **and** all its words are optional, the number of matched words required for a record to be included in the
* search results increases for every 1,000 records: - If `optionalWords` has less than 10 words, the required number
* of matched words increases by 1: results 1 to 1,000 require 1 matched word, results 1,001 to 2000 need 2 matched
* words. - If `optionalWords` has 10 or more words, the number of required matched words increases by the number of
* optional words divided by 5 (rounded down). For example, with 18 optional words: results 1 to 1,000 require 1
* matched word, results 1,001 to 2000 need 4 matched words. For more information, see [Optional
* words](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/empty-or-insufficient-results/#creating-a-list-of-optional-words).
*/
sealed trait OptionalWords

Expand Down

0 comments on commit 1b6e72b

Please sign in to comment.