diff --git a/build.sbt b/build.sbt index 6dd8d4d..c4c2a52 100644 --- a/build.sbt +++ b/build.sbt @@ -1,6 +1,6 @@ name := "solrprocessors" -version := "4.6" +version := "4.8" description := "Solr processors for use in the update request processor chain." @@ -10,7 +10,7 @@ scalaVersion := "2.11.7" scalacOptions ++= Seq("-unchecked", "-deprecation", "-optimise", "-feature", "-Xlint", "-language:postfixOps") -libraryDependencies += "org.apache.solr" % "solr-core" % "4.6.0" % "compile" +libraryDependencies += "org.apache.solr" % "solr-core" % "8.11.1" % "compile" libraryDependencies += "org.slf4j" % "slf4j-api" % "1.7.2" % "compile" @@ -18,7 +18,7 @@ libraryDependencies += "org.scalatest" % "scalatest_2.11" % "2.2.4" % "test" libraryDependencies += "org.slf4j" % "slf4j-jdk14" % "1.7.2" % "test" -resolvers += "Public online Restlet repository" at "http://maven.restlet.org/" +resolvers += "Public online Restlet repository" at "https://maven.restlet.org/" pomExtra := solrprocessors @@ -27,7 +27,7 @@ pomExtra := Apache 2 - http://www.apache.org/licenses/LICENSE-2.0.txt + https://www.apache.org/licenses/LICENSE-2.0.txt manual diff --git a/project/plugins.sbt b/project/plugins.sbt index 7e65b5c..2996790 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,3 +1,2 @@ -addSbtPlugin("org.scalastyle" %% "scalastyle-sbt-plugin" % "0.8.0") -resolvers += "sonatype-releases" at "https://oss.sonatype.org/content/repositories/releases/" \ No newline at end of file +resolvers += "sonatype-releases" at "https://oss.sonatype.org/content/repositories/releases/" diff --git a/scalastyle-config.xml b/scalastyle-config.xml deleted file mode 100644 index dec0a76..0000000 --- a/scalastyle-config.xml +++ /dev/null @@ -1,117 +0,0 @@ - - Scalastyle standard configuration - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/main/scala/dk/industria/solr/processors/HTMLStripCharFilterProcessor.scala b/src/main/scala/dk/industria/solr/processors/HTMLStripCharFilterProcessor.scala index 57ad20c..8c5dd16 100644 --- a/src/main/scala/dk/industria/solr/processors/HTMLStripCharFilterProcessor.scala +++ b/src/main/scala/dk/industria/solr/processors/HTMLStripCharFilterProcessor.scala @@ -133,8 +133,7 @@ class HTMLStripCharFilterProcessor(fieldsToProcess: List[String], spaceNormalize newValues.add(value) } } - val boost = field.get.getBoost() - field.get.setValue(newValues, boost) + field.get.setValue(newValues) } } } diff --git a/src/main/scala/dk/industria/solr/processors/PatternReplaceProcessor.scala b/src/main/scala/dk/industria/solr/processors/PatternReplaceProcessor.scala index 9bf6ea8..0b7da74 100644 --- a/src/main/scala/dk/industria/solr/processors/PatternReplaceProcessor.scala +++ b/src/main/scala/dk/industria/solr/processors/PatternReplaceProcessor.scala @@ -59,8 +59,7 @@ class PatternReplaceProcessor(fieldPatternRules: List[FieldPatternReplaceRules], newValues.add(value); } } - val boost = field.get.getBoost() - field.get.setValue(newValues, boost) + field.get.setValue(newValues) } } }