Skip to main content.
home | support | download

Back to List Archive

Re: [swish-e] question on sorting of returned index values

From: at <Peter>
Date: Tue, 26 Jun 2012 21:06:14 -0500
Joseph Norris wrote on 6/26/12 9:01 PM:
> Thank you for responding Peter,
> With in the set_sort method can I set my title and name?  - I see 
> swishdocpath etc.. but I do not know if this refers to the fields that I 
> need to sort.

You can sort on any PropertyName. E.g.:

 $searcher->set_sort('mytitle ASC mydesc DESC mydate ASC');

experiment with the swish-e command line -s option to see how it works.

Peter Karman  .  .  peter(at)
Users mailing list
Received on Wed Jun 27 2012 - 02:06:18 GMT