Hi,
Yes, the new sort query worked!. Thank you for the quick response.
Thanks,
Indika
On 8 November 2012 04:31, Rafał Kuć wrote:
> Hello!
>
> Ahhh, sorry. I see now. The function query you are specifying for the
> sort is not proper. Solr doesn't understand that part:
>
> exists(start_time:[*
Hello!
Ahhh, sorry. I see now. The function query you are specifying for the
sort is not proper. Solr doesn't understand that part:
exists(start_time:[* TO 1721] AND end_time:[1721 TO *])
try something like that:
sort=if(exists(query($innerQuery)),100,0)+desc&innerQuery={!edismax}(start_time:[*
Thanks for the response, I did append the sort order but the result was the
same,
Can't determine a Sort Order (asc or desc) in sort spec
'if(exists(start_time:[* TO 1721] AND end_time:[1721 TO *]),100,0) asc',
pos=23
Thanks,
Indika
On 8 November 2012 04:02, Rafał Kuć wrote:
> Hello!
>
> Fro
Hello!
From looking at your sort parameter it seems that you are missing the
order of sorting. The function query will return a value on which
Solr will sort and Solr needs to know if the documents should be
sorted in descending or ascending order. Try something like that:
sort=if(exists(start_ti