Skip to content

Commit

Permalink
Merge branch 'Use-features-vector-for-kNN-queries' into Aggregation-u…
Browse files Browse the repository at this point in the history
…pdates
  • Loading branch information
StepanBrychta committed Nov 26, 2024
2 parents 3d8fa13 + ed20650 commit d78a698
Show file tree
Hide file tree
Showing 239 changed files with 319,103 additions and 141 deletions.
2 changes: 1 addition & 1 deletion common/search/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "3.3"

services:
elasticsearch:
image: "docker.elastic.co/elasticsearch/elasticsearch:8.4.0"
image: "docker.elastic.co/elasticsearch/elasticsearch:8.11.4"
ports:
- "9200:9200"
- "9300:9300"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package weco.api.search.models.index
import io.circe.Json

case class IndexedImage(display: Json, vectorValues: Json) {
lazy val reducedFeatures: Seq[Float] =
lazy val features: Seq[Float] =
vectorValues.hcursor
.downField("reducedFeatures")
.downField("features")
.as[Seq[Float]]
.right
.get
Expand Down
14 changes: 1 addition & 13 deletions common/search/src/test/resources/ImagesIndexConfig.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d78a698

Please sign in to comment.