Zum Inhalt springen

Solr und tt_news

Erstellt am 29. April 2013 · 1 Antwort · letzte Antwort am 6. Februar 2015

Tags: tt_news, Suche, Frage

citizenkane ·

Hallo,

wie kann ich die Extension konfigurieren wenn ich List und Singleansicht auf einer Seite habe. Ich habe also keine eindeutige Single PID sondern hunderte verschiedene.

plugin.tx_solr.index.queue {

    // enables indexing of tt_news reocrds
    tt_news = 1
    tt_news {
        fields {
            abstract = short
            author = author
            description = short
            title = title

            // the special SOLR_CONTENT content object cleans HTML and RTE fields
            content = SOLR_CONTENT
            content {
                field = bodytext
            }

            // the special SOLR_RELATION content object resolves relations
            category_stringM = SOLR_RELATION
            category_stringM {
                localField = category
                multiValue = 1
            }

            // the special SOLR_MULTIVALUE content object allows to index multivalue fields
            keywords = SOLR_MULTIVALUE
            keywords {
                field = keywords
            }

            // build the URL through typolink, make sure to use returnLast = url
            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
        }
    }
}

kann mir wer weiterhelfen wie ich den typolink.parameter Handhaben kann?