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

Komische Queries werden von lobid geloggt #623

Open
TobiasNx opened this issue Aug 2, 2023 · 0 comments
Open

Komische Queries werden von lobid geloggt #623

TobiasNx opened this issue Aug 2, 2023 · 0 comments
Assignees

Comments

@TobiasNx
Copy link
Contributor

TobiasNx commented Aug 2, 2023

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]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants