To edit pages or tickets please login with username/password: aaf/aaf

Ticket #155 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

There is no way to specify sort type on remote indexes

Reported by: aaf Assigned to: jk
Priority: minor Milestone: 0.4.1
Component: 0plugin Version:
Keywords: Cc:

Description

using Sort and SortField? causes the server to exit. This patch parses the string version of sort as

:sort=>"FIELD ASC|DESC SORT_TYPE"

For example,

:sort=>"name asc string" or :sort=>"cost desc float"

Attachments

ferret_search_with_type.patch (1.0 kB) - added by aaf on 07/13/07 19:26:31.
patch

Change History

07/13/07 19:26:31 changed by aaf

  • attachment ferret_search_with_type.patch added.

patch

07/13/07 20:03:52 changed by jk

  • status changed from new to assigned.
  • milestone changed from later to 0.4.1.

07/13/07 21:06:06 changed by jk

  • status changed from assigned to closed.
  • resolution set to fixed.

I decided to solve this now in a slightly other way: I added marshalling support to Ferret::Search::Sort as I already did before for SortField?. So handing over the Sort object should be fine now. using a simple Array of SortField? objects instead of a Sort instance will work, too (so the only time you need the Sort class is when you need it's global :reverse flag).

To edit pages or tickets please login with username/password: aaf/aaf