0

I currently use Sphinx search, and am attempting to sort my results in time segments mode, which means time segments in descending order and then relevance in descending order.

Currently I use SPH_SORT_RELEVANCE, and it works fine. But every time I switch to time segments mode, it returns zero results. I am setting sql_date_column in my sphinx.conf file.

What am I doing wrong? Am I missing something?

Thanks!

1
Contributor
1
Reply
2
Views
6 Years
Discussion Span
Last Post by Dani
0

Hey guys,

I was able to figure it out. I was under the (false) assumption that SPH_SORT_TIME_SEGMENTS figured out the time based on what was set in the sql_date_column. However, it turns out that you have to manually pass in which field you want to use for time, when setting the SortMode.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.