[TYPO3-Solr] tt_news, multiple single-pids and other problems

Joerg Sauskat j.sauskat at gmx.de
Sat Jun 22 21:06:24 CEST 2013


Hi,

google is my best friend, but i don't found informations to solve my 
problem about tt_news and solr.

Solr for Typo3 successful index pages AND tt_news items. The problems i 
get on the result page. (On another installation with Typo3 4.7 an only 
one single-Pid Solr works very fine.)

First:
The result-items for tt_news don't show the rich (real)url, only 
"www.mydomain.ch" and not for example 
"www.mydomain.ch/seite1/thema/detail/news/irgendwas.html"

Second:
If i use the facet-option "news" to show only the news entrys, i get "Es 
tut uns leid. Ihre Suchanfrage konnte nicht verarbeitet werden."

Devlog reports some errors:
"Could not resolve document score for relevance calculation"
(called from class.tx_solr_viewhelper_relevance.php, line 124)
and

"exception 'RuntimeException' with message 'Could not resolve document 
score for relevance calculation' in 
/var/(...)/typo3conf/ext/solr/classes/viewhelper/class.tx_solr_viewhelper_relevance.php:127 
Stack trace: #0"
(called from class.tx_solr_pluginbase_pluginbase.php, line 119)



This is my configuration:

- Apache Solr for Typo3 2.8.2
- PHP 5.3.5
- Typo3 4.5.27
- Apache Solr: 3.6.2 (3.6.2.2012.12.18.19.52.27)
- schema.xml: tx_solr-2-8-0--20120925
- solrconfig.xml: tx_solr-2-8-0--20120925

I've got four news categories with each single-Pid to show the news 
depending the categories.
News stored in an sysfolder inside the root. The categories stored in 
another sysfolder inside the root.

My constants (tt_news single-Pids):
(...)
plugin.tt_news.useBidirectionalRelations = 1
plugin.tt_news.singlePid = 3078
plugin.tt_news.useSPidFromCategory = 1
plugin.tt_news.useSPidFromCategoryRecusive = 1
(...)

My setup for solr:

plugin.tx_solr.index.queue.tt_news = 1
plugin.tx_solr.suggest = 0
plugin.tx_solr.search.results.resultsHighlighting = 1
plugin.tx_solr.search.sorting = 1

plugin.tx_solr.search.sorting.options.relevance.label.lang.de = Relevanz
plugin.tx_solr.search.sorting.options.title.label.lang.de = Titel
plugin.tx_solr.search.sorting.options.type.label.lang.de = Typ
plugin.tx_solr.search.sorting.options.author.label.lang.de = AutorIn
plugin.tx_solr.search.sorting.options.created.label.lang.de = 
Erstellungsdatum
plugin.tx_solr.search.spellchecking = 1
plugin.tx_solr.search.faceting = 1
plugin.tx_solr.index.queue {
     tt_news = 1
     tt_news {
         fields {
             abstract = short
             author = author
             description = short
             title = title

             content = SOLR_CONTENT
             content {
                 field = bodytext
             }

             category_stringM = SOLR_RELATION
             category_stringM {
                 localField = category
                 relationTableSortingField = sorting
                 multiValue = 1
             }

             categoryMain_stringS = TEXT
             categoryMain_stringS {
                 cObject = SOLR_RELATION
                 cObject {
                     localField = category
                     relationTableSortingField = sorting
                     singleValueGlue = ,
                 }

                 split {
                     token = ,
                     returnKey = 0
                 }
             }

             keywords = SOLR_MULTIVALUE
             keywords {
                 field = keywords
             }

             url = TEXT
             url {
                 typolink.parameter = {$plugin.tt_news.singlePid}
                 typolink.additionalParams = 
&tx_ttnews[tt_news]={field:uid}&L={field:__solr_index_language}
                 typolink.additionalParams.insertData = 1
                 typolink.returnLast = url
                 typolink.useCacheHash = 1
             }

             sortAuthor_stringS = author
             sortTitle_stringS  = title
         }

         attachments {
             fields = news_files
         }
     }

}
plugin.tx_solr.logging.indexing.queue.tt_news = 0
plugin.tx_solr.index.queue.tt_news.fields.url.typolink.parameter.cObject=USER
plugin.tx_solr.index.queue.tt_news.fields.url.typolink.parameter.cObject.userFunc=script_indexqueue->getSinglePid
plugin.tx_solr.index.queue.tt_news.additionalPageIds = 2970,2966
plugin.tx_solr {
    search {
        faceting {
              # Gruppierung entfernen Link Beschriftung
              removeFacetLinkText = @facetText (entfernen)
              facets {
                  type {
                      label = Filtertyp
                      renderingInstruction = CASE
                      renderingInstruction {
                          key.field = optionValue
                          pages = TEXT
                          pages.value = Pages
                          pages.lang.de = Seiten

                          tt_news = TEXT
                          tt_news.value = News
                          tt_news.lang.de = Nachrichten
                      }
                  }
              }
          }
      }
  }

Somebody who can help me?

Best regards,
Joerg


More information about the TYPO3-project-solr mailing list