[TYPO3-Solr] Show search result grouped by facet
Peter Kraume
usenet at kraume.de
Wed Nov 9 17:12:40 CET 2011
First of all thx for your answer and sorry for my late response.
Am 27.10.2011 19:03, schrieb Ingo Renner:
> To get some naming straight: In this case I guess you mean you have _one
> facet_ (type) with _three options_.
>
Correct!
>
> You can achieve this the following way (also mentioned earlier in the ML
> ;) ):
>
> 1) enable / set tx_solr.search.results.markResultTypeBoundaries = 1
>
> 2) sort by type
>
I haven't found a way to set default sorting to type via TS. As a
workaround I've added a hidden field tx_solr[sort]=type asc to the
search form. Is there a better solution?
> 3) documents get added result type boundary marker fields name typeBegin
> and typeEnd with the values<type>_begin and<type>_end
>
> 4) add conditions in the template to display/hide stuff when those
> fields are encountered.
>
> http://forge.typo3.org/projects/extension-solr/wiki/Tx_solrsearch#resultsmarkResultTypeBoundaries
>
> Available from dkd EAP revisions 81433/81434
>
Works quite fine so far, thx!
Cheers
Peter
More information about the TYPO3-project-solr
mailing list