hbz / nwbib

Die Nordrhein-Westfälische Bibliographie
http://nwbib.de
3 stars 2 forks source link

Komische Queries werden von lobid geloggt #623

Open TobiasNx opened 1 year ago

TobiasNx commented 1 year ago

Davon gibt es mehrere an einem Tag (14)

2023-07-29 13:22:59 +0200 [ERROR] from application in application-akka.actor.default-dispatcher-55 - Could not query index: Invalid query: {
  "bool" : {
    "must" : [
      {
        "query_string" : {
          "query" : "AND 2476=\\(SELECT \\(CASE WHEN \\(2476=1141\\) THEN 2476 ELSE \\(SELECT 1141 UNION SELECT 5076\\) END\\)\\)-- wHjU AND spatial.id:\"https://nwbib.de/spatial#Q1295\"",
          "fields" : [
            "biblioVinoId^1.0",
            "contribution.agent.id^1.0",
            "contribution.agent.label^1.0",
            "hbzId^1.0",
            "isbn^1.0",
            "issn^1.0",
            "medium.id^1.0",
            "natureOfContent.label^1.0",
            "otherTitleInformation^1.0",
            "publication.publishedBy^1.0",
            "rpbId^1.0",
            "subject.componentList.label^1.0",
            "subject.label^1.0",
            "subjectAltLabel^1.0",
            "title^1.0",
            "type^1.0"
          ],
          "use_dis_max" : true,
          "tie_breaker" : 0.0,
          "default_operator" : "and",
          "auto_generate_phrase_queries" : false,
          "max_determinized_states" : 10000,
          "enable_position_increments" : true,
          "fuzziness" : "AUTO",
          "fuzzy_prefix_length" : 0,
          "fuzzy_max_expansions" : 50,
          "phrase_slop" : 0,
          "escape" : false,
          "split_on_whitespace" : true,
          "boost" : 1.0
        }
      },
      {
        "query_string" : {
          "query" : "inCollection.id:\"http://lobid.org/resources/HT014176012#!\"",
          "fields" : [ ],
          "use_dis_max" : true,
          "tie_breaker" : 0.0,
          "default_operator" : "or",
          "auto_generate_phrase_queries" : false,
          "max_determinized_states" : 10000,
          "enable_position_increments" : true,
          "fuzziness" : "AUTO",
          "fuzzy_prefix_length" : 0,
          "fuzzy_max_expansions" : 50,
          "phrase_slop" : 0,
          "escape" : false,
          "split_on_whitespace" : true,
          "boost" : 1.0
        }
      },
      {
        "bool" : {
          "should" : [
            {
              "match" : {
                "subject.id" : {
                  "query" : "https://nwbib.de/subjects#N843090",
                  "operator" : "AND",
                  "prefix_length" : 0,
                  "max_expansions" : 50,
                  "fuzzy_transpositions" : true,
                  "lenient" : false,
                  "zero_terms_query" : "NONE",
                  "boost" : 1.0
                }
              }
            }
          ],
          "disable_coord" : false,
          "adjust_pure_negative" : true,
          "boost" : 1.0
        }
      }
    ],
    "disable_coord" : false,
    "adjust_pure_negative" : true,
    "boost" : 1.0
  }
}
java.lang.IllegalArgumentException: Invalid query: {
  "bool" : {
    "must" : [
      {
        "query_string" : {
          "query" : "AND 2476=\\(SELECT \\(CASE WHEN \\(2476=1141\\) THEN 2476 ELSE \\(SELECT 1141 UNION SELECT 5076\\) END\\)\\)-- wHjU AND spatial.id:\"https://nwbib.de/spatial#Q1295\"",
          "fields" : [
            "biblioVinoId^1.0",
            "contribution.agent.id^1.0",
            "contribution.agent.label^1.0",
            "hbzId^1.0",
            "isbn^1.0",
            "issn^1.0",
            "medium.id^1.0",
            "natureOfContent.label^1.0",
            "otherTitleInformation^1.0",
            "publication.publishedBy^1.0",
            "rpbId^1.0",
            "subject.componentList.label^1.0",
            "subject.label^1.0",
            "subjectAltLabel^1.0",
            "title^1.0",
            "type^1.0"
          ],
          "use_dis_max" : true,
          "tie_breaker" : 0.0,
          "default_operator" : "and",
          "auto_generate_phrase_queries" : false,
          "max_determinized_states" : 10000,
          "enable_position_increments" : true,
          "fuzziness" : "AUTO",
          "fuzzy_prefix_length" : 0,
          "fuzzy_max_expansions" : 50,
          "phrase_slop" : 0,
          "escape" : false,
          "split_on_whitespace" : true,
          "boost" : 1.0
        }
      },
      {
        "query_string" : {
          "query" : "inCollection.id:\"http://lobid.org/resources/HT014176012#!\"",
          "fields" : [ ],
          "use_dis_max" : true,
          "tie_breaker" : 0.0,
          "default_operator" : "or",
          "auto_generate_phrase_queries" : false,
          "max_determinized_states" : 10000,
          "enable_position_increments" : true,
          "fuzziness" : "AUTO",
          "fuzzy_prefix_length" : 0,
          "fuzzy_max_expansions" : 50,
          "phrase_slop" : 0,
          "escape" : false,
          "split_on_whitespace" : true,
          "boost" : 1.0
        }
      },
      {
        "bool" : {
          "should" : [
            {
              "match" : {
                "subject.id" : {
                  "query" : "https://nwbib.de/subjects#N843090",
                  "operator" : "AND",
                  "prefix_length" : 0,
                  "max_expansions" : 50,
                  "fuzzy_transpositions" : true,
                  "lenient" : false,
                  "zero_terms_query" : "NONE",
                  "boost" : 1.0
                }
              }
            }
          ],
          "disable_coord" : false,
          "adjust_pure_negative" : true,
          "boost" : 1.0
        }
      }
    ],
    "disable_coord" : false,
    "adjust_pure_negative" : true,
    "boost" : 1.0
  }
}
    at controllers.resources.Search.validate(Search.java:177) ~[lobid-resources-web.lobid-resources-web-0.3.0-SNAPSHOT-sans-externalized.jar:na]
    at controllers.resources.Search.lambda$queryResources$1(Search.java:145) ~[lobid-resources-web.lobid-resources-web-0.3.0-SNAPSHOT-sans-externalized.jar:na]
    at controllers.resources.Search.withClient(Search.java:258) ~[lobid-resources-web.lobid-resources-web-0.3.0-SNAPSHOT-sans-externalized.jar:na]
    at controllers.resources.Search.queryResources(Search.java:144) ~[lobid-resources-web.lobid-resources-web-0.3.0-SNAPSHOT-sans-externalized.jar:na]
    at controllers.resources.Application.lambda$createResult$5(Application.java:278) ~[lobid-resources-web.lobid-resources-web-0.3.0-SNAPSHOT-sans-externalized.jar:na]
    at play.core.j.FPromiseHelper$$anonfun$promise$2.apply(FPromiseHelper.scala:36) ~[com.typesafe.play.play_2.11-2.4.11.jar:2.4.11]
    at scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24) ~[org.scala-lang.scala-library-2.11.11.jar:na]
    at scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24) ~[org.scala-lang.scala-library-2.11.11.jar:na]
    at play.core.j.HttpExecutionContext$$anon$2.run(HttpExecutionContext.scala:40) ~[com.typesafe.play.play_2.11-2.4.11.jar:2.4.11]
    at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:40) ~[com.typesafe.akka.akka-actor_2.11-2.3.13.jar:na]
    at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:397) ~[com.typesafe.akka.akka-actor_2.11-2.3.13.jar:na]
    at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) ~[org.scala-lang.scala-library-2.11.11.jar:na]
    at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) ~[org.scala-lang.scala-library-2.11.11.jar:na]
    at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) ~[org.scala-lang.scala-library-2.11.11.jar:na]
    at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107) ~[org.scala-lang.scala-library-2.11.11.jar:na]