[TYPO3-Solr] sortBy not working?

Jigal van Hemert jigal.van.hemert at typo3.org
Thu Mar 29 16:21:54 CEST 2012


Hi,

On 29-3-2012 15:13, Ingo Renner wrote:
>> If I add a sorting:
>> sorting.fields {
>> sorting_intS = 1
>> sorting_intS.label = sorting_type2
>
> here's the wrong part, this should be like this (in 2.0/2.5):
>
> sorting = 1
> sorting {
> options {
> mySortingOptionName {
> field = sorting_intS
> label = Sort me NOW!
> }
> }
> }

Okay, good to know!

>> If I try to use it as default sortBy then the relevancy is still used:
>> plugin.tx_solr.search.query.sortBy = sorting_intS asc
>
> works for me, can you enable this please and have a look what is sent to

It works in the latest EAP. The problem was in some revision of 
2.5.0-dev. It's unfortunately not trivial to upgrade because a lot of 
small changes in property and marker names

>> A second question: does the file index or index.queue support additional
>> fields? I couldn't find it in the sources when I took a quick look.
>
> For files there's at least a way to do that with PHP already, but not
> through TS yet.

Ok, a missing feature :-)

With the latest EAP the sortBy is working, so in this particular case we 
can sort on type and use the markResultTypeBoundaries to group the 
results on type.

-- 
Jigal van Hemert
TYPO3 v4 Core Team member

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the TYPO3-project-solr mailing list