Skip to content

[BUG] Kitodo search plugin no longer works (regression) #1700

@stweil

Description

@stweil

Discussed in #1699

Originally posted by stweil August 21, 2025
I want to install Kitodo.Presentation's main branch with TYPO3 v12 and cannot get search results from the search plugin.
A similar installation based on the 5.1.x branch with TYPO3 v11 has a working search.

Here are extracts from the Solr request logfile when a single search for "test" is done.

Good search with correct results (branch 5.1.x):

127.0.0.1 - - [21/Aug./2025:18:20:45 +0000] "GET /solr/admin/cores?wt=json&json.nl=flat&action=STATUS&core=dlfCore0 HTTP/1.0" 200 1121
127.0.0.1 - - [21/Aug./2025:18:20:45 +0000] "GET /solr/dlfCore0/select?omitHeader=true&wt=json&json.nl=flat&q=fulltext%3A%28test%29&start=0&rows=0&fl=%2A%2Cscore&facet.field=%7B%21key%3Dcollection_faceting%7Dcollection_faceting&f.collection_faceting.facet.sort=index&f.collection_faceting.facet.limit=15&f.collection_faceting.facet.mincount=1&facet=true HTTP/1.0" 200 509
127.0.0.1 - - [21/Aug./2025:18:20:45 +0000] "GET /solr/dlfCore0/select?omitHeader=true&wt=json&json.nl=flat&q=fulltext%3A%28test%29&start=0&rows=0&fl=%2A%2Cscore&facet.field=%7B%21key%3Dcollection_faceting%7Dcollection_faceting&f.collection_faceting.facet.sort=index&f.collection_faceting.facet.limit=15&f.collection_faceting.facet.mincount=1&facet=true HTTP/1.0" 200 509
127.0.0.1 - - [21/Aug./2025:18:20:46 +0000] "GET /solr/admin/cores?wt=json&json.nl=flat&action=STATUS&core=dlfCore0 HTTP/1.0" 200 1121
127.0.0.1 - - [21/Aug./2025:18:20:46 +0000] "GET /solr/dlfCore0/select?omitHeader=true&wt=json&json.nl=flat&q=fulltext%3A%28test%29&start=0&rows=0&fl=%2A%2Cscore&facet.field=%7B%21key%3Dcollection_faceting%7Dcollection_faceting&f.collection_faceting.facet.sort=index&f.collection_faceting.facet.limit=15&f.collection_faceting.facet.mincount=1&facet=true HTTP/1.0" 200 509
127.0.0.1 - - [21/Aug./2025:18:20:46 +0000] "GET /solr/dlfCore0/select?omitHeader=true&wt=json&json.nl=flat&q=fulltext%3A%28test%29&start=0&rows=0&fl=%2A%2Cscore&facet.field=%7B%21key%3Dcollection_faceting%7Dcollection_faceting&f.collection_faceting.facet.sort=index&f.collection_faceting.facet.limit=15&f.collection_faceting.facet.mincount=1&facet=true HTTP/1.0" 200 509

Bad search without any result (main branch):

127.0.0.1 - - [21/Aug./2025:18:15:40 +0000] "GET /solr/admin/cores?wt=json&json.nl=flat&action=STATUS&core=dlfCore1 HTTP/1.0" 200 1117
127.0.0.1 - - [21/Aug./2025:18:15:40 +0000] "GET /solr/dlfCore1/suggest?omitHeader=true&wt=json&json.nl=flat&suggest=true&suggest.q=test&suggest.count=10&suggest.build=false&suggest.reload=false HTTP/1.0" 200 114

If I disable search suggestions which were initially enabled for both settings, the main branch throws an exception:

 Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1580585079: No valid parameter passed! | InvalidArgumentException thrown in file /var/customers/webs/weil/viewer/vendor/kitodo/presentation/Classes/Middleware/SearchSuggest.php in line 59. Requested URL: https://digital.ladenburg.world/ 

The results when I access Solr with curl show that both Solr cores (dlfCore0 for 5.1.x, dlfCore1 for main) contain fulltext with the word "test":

$ SOLR=http://localhost:8983

$ curl "$SOLR/solr/dlfCore0/select?omitHeader=true&wt=json&json.nl=flat&q=fulltext%3A%28test%29&start=0&rows=0&fl=%2A%2Cscore&facet.field=%7B%21key%3Dcollection_faceting%7Dcollection_faceting&f.collection_faceting.facet.sort=index&f.collection_faceting.facet.limit=15&f.collection_faceting.facet.mincount=1&facet=true"
{
  "response":{
    "numFound":170,
    "start":0,
    "maxScore":4.4153857,
    "numFoundExact":true,
    "docs":[ ]
  },
  "facet_counts":{
    "facet_queries":{ },
    "facet_fields":{
      "collection_faceting":["Ladenburger Tageblatt",48,"Ladenburger Wochenblatt",21,"Neckar-Bergstrass-Post",101,"ddc:070:073",170,"doc-type:Periodical",170,"doc-type:Text",170,"open_access",170,"status-type:publishedVersion",170]
    },
    "facet_ranges":{ },
    "facet_intervals":{ },
    "facet_heatmaps":{ }
  }
}

$ curl "$SOLR/solr/dlfCore1/select?omitHeader=true&wt=json&json.nl=flat&q=fulltext%3A%28test%29&start=0&rows=0&fl=%2A%2Cscore&facet.field=%7B%21key%3Dcollection_faceting%7Dcollection_faceting&f.collection_faceting.facet.sort=index&f.collection_faceting.facet.limit=15&f.collection_faceting.facet.mincount=1&facet=true"
{
  "response":{
    "numFound":21,
    "start":0,
    "maxScore":4.1382627,
    "numFoundExact":true,
    "docs":[ ]
  },
  "facet_counts":{
    "facet_queries":{ },
    "facet_fields":{
      "collection_faceting":[ ]
    },
    "facet_ranges":{ },
    "facet_intervals":{ },
    "facet_heatmaps":{ }
  }
}

Metadata

Metadata

Labels

☇ bugA non-security related bug.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions