Zum Inhalt springen

Solr und tx_news

Erstellt am 7. Februar 2015 · 1 Antwort · letzte Antwort am 18. November 2015

Tags: tx_news, Suche, TYPO3 6.x, Frage

mic187 ·

Hallo ich stehe gerade vor einem Problem, ich habe mehrere Singlepids die ich in solr importiren möchte, aber leider füllt er den Parameter URL nicht.

Anbei mal mein TS

        plugin.tx_solr {
          solr.host = localhost
          solr.port = 8080
          solr.path = /solr/core_de/
          solr.scheme = http
         
          statistics = 1
          suggest = 1
          search {
            results {
              resultsHighlighting = 1
              #siteHighlighting = 1
              #showDocumentScoreAnalysis = 1
            }
            spellchecking = 1
            lastSearches = 0
            frequentSearches = 0
            sorting = 0
            sorting.options.relevance.label.lang.de = Relevanz
            sorting.options.title.label.lang.de = Titel
            sorting.options.type.label.lang.de = Typ
            sorting.options.author.label.lang.de = Autor
            sorting.options.created.label.lang.de = Erstellungsdatum
           
            faceting = 0
            faceting.facets {
              type {
                label.lang.de = Inhaltstyp
                renderingInstruction = CASE
                renderingInstruction {
                  key.field = optionValue
                  # pages
                  pages = TEXT
                  pages.value = Pages
                  pages.lang.de = Seiten
                  # tx_news
                  tx_news_domain_model_news = TEXT
                  tx_news_domain_model_news.value = News
                  tx_news_domain_model_news.lang.de = News
                }
              }
            }
          }
         
          index.queue {
            news = 1
            news {
              table = tx_news_domain_model_news
              fields {
                abstract = teaser
                author = author
                authorEmail_stringS = author_email
                title = title
                content = SOLR_CONTENT
                content {
                  field = bodytext
                }
               
                content = SOLR_CONTENT
                content {
                  cObject = COA
                  cObject {
                    10 = TEXT
                    10 {
                      field = bodytext
                      noTrimWrap = || |
                    }
                    20 = SOLR_RELATION
                    20 {
                      localField = content_elements
                      foreignLabelField = bodytext
                      singleValueGlue = | |
                    }
                  }
                }
                
              categoryMain_stringS = TEXT
              categoryMain_stringS {
                  cObject = SOLR_RELATION
                  cObject {
                      localField = category
                    relationTableSortingField = sorting
                    singleValueGlue = ,
                 }
                 split {
                     token = ,
                     returnKey = 0
                 }
             }

                category_stringM = SOLR_RELATION
                category_stringM {
                  localField = categories
                  multiValue = 1
                }
               
                tags_stringM = SOLR_RELATION
                tags_stringM {
                  localField = tags
                  multiValue = 1
                }
               
                keywords = SOLR_MULTIVALUE
                keywords {
                  field = keywords
                }
                url = TEXT
                url {
                 typolink.parameter = field:tx_news_singlePid
                  #typolink.parameter = 99
                  

                  typolink.additionalParams = &tx_news_pi1[controller]=News&tx_news_pi1[action]=detail&tx_news_pi1[news]={field:uid}&L={field:__solr_index_language}
                  typolink.additionalParams.insertData = 1
                  typolink.useCacheHash = 1
                  typolink.returnLast = url
                }
              }
              attachments {
                fields = related_files
              }
            } 
} 
          }

Wenn ich bei Typolink.parameter eine feste ID eintrage dan geht es, aber ich habe ja nicht nur eine :-(

ich habe auch das schon versucht, aber auch ohne erfolg

url = TEXT
                url {
typolink.parameter.cObject = CONTENT
typolink.parameter.cObject {
renderObj.key.field = pid

35 = TEXT
35.value = 95

44 = TEXT
44.value = 96

48 = TEXT
48.value = 105

}
}
typolink.additionalParams = &tx_news_pi1[controller]=News&tx_news_pi1[action]=detail&tx_news_pi1[news]={field:uid}&L={field:__solr_index_language}
                  typolink.additionalParams.insertData = 1
                  typolink.useCacheHash = 1
                  typolink.returnLast = url
                }

Achja bevor wieder die Frage kommt ist es auch wirklich tx_news "JA" die von Georg Ringer.

Vielen Dank für eure Hilfe.