[TYPO3-Solr] generate multiple query facets from one field

b.riezler at pixel-ink.de b.riezler at pixel-ink.de
Tue Jan 29 11:07:25 CET 2013


Hi,

i generate a few facets via query facets.
The problem is that most of the facettes are kept in one field, for long term i will use copyFields to seperate them but nwo for a quick solution i'd like to use the query facets.
The facets are genereted but they also show every possible Facet with more than one hit wich is not defined by the query Group, so i want to display only the defined queries in a facet. Is this possible.

2.8.0-dev Solr version

Thanks
Benjamin

The generated facets look like this:

Location:

Monte Carlo (Monaco) (5)
Spain (1)
category_textM:Action (127)  - should not be displayed
category_textM:Landscape (18) - should not be displayed

category_textM:monte carlo (5) - should not be displayed
category_textM:spain (1) - should not be displayed
Action (127)
Landscape (18)



Example TS

ort{
                label = Location
                field = category_textM

                type = queryGroup
                queryGroup{

                    argentina {
                        query = argentina
                    }
}
renderingInstruction = CASE
                renderingInstruction {
                    key.field = optionValue

                    default = TEXT
                    default.field = optionValue

                               argentina = TEXT
                        argentina.value = Argentina
}
}

category {
          field = category_textM
          label < temp.style

            type = queryGroup
            queryGroup{
                Action {
                    query = Action
                }
}
}


More information about the TYPO3-project-solr mailing list