[TYPO3-Solr] Boost by level on page tree?

Florian Seirer florian.seirer at tirol.gv.at
Fri Mar 18 12:02:24 CET 2016


Thank you for your suggestion, Olivier!

But I used yet another approach, using the pages in the rootline to boost the results. It's not exactly what I originally wanted, but the results are satisfying.
As an added bonus I was able to use this as a nice looking rootline navigation instead of the result URL.

plugin.tx_solr {
    index {
        additionalFields {
            vSection1_stringS = TEXT
            vSection1_stringS.data = leveltitle:1
            vSection2_stringS = TEXT
            vSection2_stringS.data = leveltitle:2
            vSection3_stringS = TEXT
            vSection3_stringS.data = leveltitle:3
            vSection4_stringS = TEXT
            vSection4_stringS.data = leveltitle:4
            vSection5_stringS = TEXT
            vSection5_stringS.data = leveltitle:5
            vSectionUID1_stringS = TEXT
            vSectionUID1_stringS.data = leveluid:1
            vSectionUID2_stringS = TEXT
            vSectionUID2_stringS.data = leveluid:2
            vSectionUID3_stringS = TEXT
            vSectionUID3_stringS.data = leveluid:3
            vSectionUID4_stringS = TEXT
            vSectionUID4_stringS.data = leveluid:4
            vSectionUID5_stringS = TEXT
            vSectionUID5_stringS.data = leveluid:5
        }
    }
    search {
        query.queryFields = title^10.0, content^0.5, keywords^5.0, description^10.0, abstract^5.0, author^5.0, subTitle^2.0, navTitle^3.0, tagsH2H3^3.0, tagsH4H5H6^2.0, vSection1_stringS^10.0, vSection2_stringS^5.0, vSection3_stringS^2.0, vSection4_stringS^1.0, vSection5_stringS^0.5
    }
}

Still, if anybody comes up with a better solution, let me (us) know!


More information about the TYPO3-project-solr mailing list