Skip to content

Commit

Permalink
feat(settings): add attributesToTransliterate and decompoundQuery par…
Browse files Browse the repository at this point in the history
…ams (#623)
  • Loading branch information
aallam committed May 3, 2021
1 parent a00b03d commit a257ff2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/scala/algolia/objects/IndexSettings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ case class IndexSettings(
userData: Option[Any] = None,
customNormalization: Option[Map[String, Map[String, String]]] = None,
enablePersonalization: Option[Boolean] = None,
attributesToTransliterate: Option[Seq[String]] = None,
decompoundQuery: Option[Boolean] = None,
/* Attributes */
attributesToIndex: Option[Seq[AttributesToIndex]] = None,
searchableAttributes: Option[Seq[SearchableAttributes]] = None,
Expand Down
2 changes: 2 additions & 0 deletions src/main/scala/algolia/objects/Query.scala
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ case class Query(
enableABTest: Option[Boolean] = None,
explain: Option[Seq[String]] = None,
naturalLanguages: Option[Seq[String]] = None,
decompoundQuery: Option[Boolean] = None,
/* Attributes */
attributesToRetrieve: Option[Seq[String]] = None,
restrictSearchableAttributes: Option[Seq[String]] = None,
Expand Down Expand Up @@ -143,6 +144,7 @@ case class Query(
"maxFacetHits" -> maxFacetHits.map(_.toString),
"percentileComputation" -> percentileComputation.map(_.toString),
"queryLanguages" -> queryLanguages.map(_.mkString(",")),
"decompoundQuery" -> decompoundQuery.map(_.toString),
/* Attributes */
"attributesToRetrieve" -> attributesToRetrieve.map(_.mkString(",")),
"restrictSearchableAttributes" -> restrictSearchableAttributes.map(
Expand Down

0 comments on commit a257ff2

Please sign in to comment.