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: Thu, 28 Jun 2012 12:11:38 -0500
On 6/28/12 10:04 AM, Joseph Norris wrote:
> Ok - now all I need is the return to sort by one field - I have an xml
>
> <sort_type>AA</sort_type>
> <name>John Doe</name>
> <title>President</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
>
> <sort_type>AA</sort_type>
>    <name>etc....
> <sort_type>BB</sort_type>
>     <name>etc.....
>
>
> 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
>

the -s option is a search-time option, not an index-time option.

Try:

  % swish-e -w president -s sort_type


-- 
Peter Karman  .  http://peknet.com/  .  peter(at)not-real.peknet.com
_______________________________________________
Users mailing list
Users(at)not-real.lists.swish-e.org
http://lists.swish-e.org/listinfo/users
Received on Thu Jun 28 2012 - 17:11:46 GMT