Skip to main content.
home | support | download

Back to List Archive

Re: [swish-e] Ranking on word position in the target file?

From: Peter Karman <peter(at)not-real.peknet.com>
Date: Mon Jun 30 2008 - 14:53:54 GMT
On 06/30/2008 09:48 AM, Jordan Hayes wrote:
>> Does anybody know of a possibilitiy to rank swish-e output by
>> the position of the matching word in the target file? Or at least
>> a way of printing this information in the search output?
> 
> That information isn't stored by SWISH-E, so you have to go do it 
> yourself.
> 

not exactly true. The word position data is stored in the index, but it is not currently
available as a swishproperty for output in search results, so you can not display or sort
by it.

You could work around that by dumping the index word position data to a database of some
kind and then pull from that db to display the word position. See the -T option for
swish-e for dumping index information.



-- 
Peter Karman  .  peter(at)not-real.peknet.com  .  http://peknet.com/

_______________________________________________
Users mailing list
Users@lists.swish-e.org
http://lists.swish-e.org/listinfo/users
Received on Mon Jun 30 10:47:19 2008