Skip to content

Commit

Permalink
changed: fix type of HighlightResult.fullyHighlighted from Boolean to…
Browse files Browse the repository at this point in the history
… Option[Boolean] as this field may not be present
  • Loading branch information
aseure committed Oct 16, 2018
1 parent 2f0cac6 commit 97a0aea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/scala/algolia/responses/SearchResult.scala
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ trait Hit extends ObjectID {
case class HighlightResult(value: String,
matchLevel: String,
matchedWords: Iterable[String],
fullyHighlighted: Boolean)
fullyHighlighted: Option[Boolean])

case class SnippetResult(value: String, matchLevel: String)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class SearchIntegrationTest extends AlgoliaTest {
"name" -> HighlightResult("<em>a</em>lgolia",
"full",
Seq("a"),
fullyHighlighted = false))),
fullyHighlighted = Some(false)))),
None,
None,
None
Expand Down

0 comments on commit 97a0aea

Please sign in to comment.