Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update solrj dependency to 8.11.1 #2918

Merged
merged 4 commits into from
Sep 27, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -466,8 +466,8 @@ object Dependencies {
) ++ Mockito
)

val SolrjVersion = "7.7.3"
val SolrVersionForDocs = "7_7"
val SolrjVersion = "8.11.1"
val SolrVersionForDocs = "8_11"

val Solr = Seq(
libraryDependencies ++= Seq(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

package akka.stream.alpakka.solr.impl

import scala.annotation.nowarn

import akka.annotation.InternalApi
import akka.stream.ActorAttributes.SupervisionStrategy
import akka.stream._
Expand All @@ -14,10 +16,8 @@ import org.apache.solr.client.solrj.impl.CloudSolrClient
import org.apache.solr.client.solrj.request.UpdateRequest
import org.apache.solr.client.solrj.response.UpdateResponse
import org.apache.solr.common.SolrInputDocument

import scala.annotation.tailrec
import scala.util.control.NonFatal

import scala.collection.immutable
import scala.collection.JavaConverters._

Expand Down Expand Up @@ -93,6 +93,7 @@ private final class SolrFlowLogic[T, C](
client.add(collection, docs.asJava, settings.commitWithin)
}

@nowarn("msg=deprecated") // FIXME #2917 Deprecated getIdField in Solrj 8.11.x
private def atomicUpdateBulkToSolr(messages: immutable.Seq[WriteMessage[T, C]]): UpdateResponse = {
val docs = messages.map { message =>
val doc = new SolrInputDocument()
Expand Down