Skip to main content.
home | support | download

Back to List Archive

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

From: at <Joseph>
Date: Thu, 28 Jun 2012 08:04:30 -0700
Ok - now all I need is the return to sort by one field - I have an xml

<name>John Doe</name>

My conf file says:

IgnoreTotalWordCountWhenRanking yes
PropertyNames sort_type

My index statement:

/usr/local/bin/swish-e -s sort_type -c /home/cs/sw/swishe/gold.conf

So with the above xml stucture - I have a series of records that have


What I want is that when a user searches for "President" in the example 
above the return results will come out with all AA then BB then CC - 
this does not appear to be happening

Any ideas?

On 06/26/2012 07:08 PM, Joseph Norris wrote:
> Thank you.
> On 06/26/2012 07:06 PM, Peter Karman wrote:
>> 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.

#Joseph Norris (Linux/Apache/Mysql/Perl - what else is there?)
print (at)not-real.c=map chr $_+100,(6,17,15,16,-68,-3,10,11,
16,4,1, 14,-68,12,1,14,8, -68,4,-3,-1,7,1,14,-68,
-26,11,15,1,12, 4,-68,-22,11,14,14,5,15,-90);

Users mailing list
Received on Thu Jun 28 2012 - 15:04:33 GMT