使用 ext:solr 在 TYPO3 中获得 "Search is currently not available." 的搜索结果

Getting "Search is currently not available." for search results in TYPO3 with ext:solr

当我在 TYPO3 前端调用 solr 搜索结果页面时,我收到消息 Search is currently not available.

进一步研究,我可以看到调用的以下响应:

{
  "responseHeader":{
    "status":400,
    "QTime":1,
    "params":{
      "df":"_text_",
      "hl":"true",
      "echoParams":"all",
      "fl":"*,score",
      "hl.fragsize":"200",
      "fq":["siteHash:\"91639e3e14a9fde08edca3fef7846eefc22e0f3a\"",
        "{!typo3access}-2,0,1,2"],
      "spellcheck.maxCollationTries":"1",
      "hl.simple.pre":"<span class=\"results-highlight\">",
      "defType":"edismax",
      "hl.useFastVectorHighlighter":"true",
      "qf":"content^40.0 title^5.0 keywords^2.0 tagsH1^5.0 tagsH2H3^3.0 tagsH4H5H6^2.0 tagsInline description^4.0 abstract subtitle navtitle author",
      "hl.fl":"content",
      "wt":"json",
      "hl.tag.pre":"<span class=\"results-highlight\">",
      "q.alt":"*:*",
      "json.nl":"flat",
      "start":"0",
      "hl.tag.post":"</span>",
      "rows":"10",
      "facet.limit":"100",
      "json.facet":"{\"type\":{\"type\":\"terms\",\"field\":\"type_stringS\",\"limit\":100,\"mincount\":1},\"section\":{\"type\":\"terms\",\"field\":\"section_intS\",\"limit\":100,\"mincount\":1}}",
      "q":"",
      "hl.simple.post":"</span>",
      "omitHeader":"false",
      "spellcheck":"true",
      "facet.mincount":"1",
      "facet":"true",
      "facet.sort":"count",
      "debugQuery":"true",
      "spellcheck.collate":"true"}},
  "error":{
    "metadata":[
      "error-class","org.apache.solr.common.SolrException",
      "root-error-class","org.apache.solr.common.SolrException"],
    "msg":"invalid query parser 'typo3access' for query '{!typo3access}-2,0,1,2'",
    "code":400}}

据我了解错误消息,这是根据 TYPO3 访问权限。 索引工作正常。

对于 solr 服务器的设置,我使用了 solr 附带的脚本 bin/install_solr_service.sh

我是不是漏掉了什么需要配置的东西?

我使用:

你安装了 typo3-solr-filter 了吗?

最后我自己找到了问题。我使用默认配置创建核心。

但是,如 documentation 中所述:-),您必须使用随扩展提供的正确配置集创建核心:

curl "http://localhost:8983/solr/admin/cores?action=CREATE&name=core_de&configSet=ext_solr_10_0_0&schema=german/schema.xml&dataDir=../../data/german"

通过使用此命令,搜索有效。