On Dec 28, 2007, at 7:17 PM, Bill Moseley wrote:
>> How can I use swish-e to count the number of times a word occurs
>> in an
>> index?
>
> -T index_words
> -T index_words_full
>
> probably will tell you in a round about way.
>
> hello [1 1 2 (5/9 6/9)] [1 2 1 (5/9)]
> hi [1 2 1 (6/9)]
> there [1 1 1 (7/9)]
>
> Where [<meta id> <file num> <count in file> (position data)]
>
> hello [1 1 2 (5/9 6/9)] [1 2 1 (5/9)]
>
> is in meta 1, file 1 (twice) and file 2 (once).
Okay, this is what I thought. The third space-delimited value in each
square-bracketed element denotes the number of times the word occurs
in each file. Sum each of these values for the each element and you
get the total number of times the word appears in the index.
--
Eric Lease Morgan
_______________________________________________
Users mailing list
Users@lists.swish-e.org
http://lists.swish-e.org/listinfo/users
Received on Fri Dec 28 22:29:20 2007