You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Noriyuki TAKEI <nt...@sios.com> on 2017/02/11 12:50:28 UTC

meaning of weight in Suggester response

Hi,all

I would like to know the meanings of "weight" including the response
Suggester Component return.

For example,when I use Suggester Compnet(refer to the URL below),
I got the result as below.

term=Apple,weight=3,payload=

・Suggeser Component
https://cwiki.apache.org/confluence/display/solr/Suggester

I would like to know what "weight" indicates.

The reason is as blow.

I would like to use Suggester in mulit shards.
(3 shards)

Distributed Suggest dose work well,but the response
is not what I expected as below.

apple(weight:9)
apple(weight:8)
apple(weight:5)
abacus(weight:14)
ability(weight:11)
absence(weight:4)
※suggest.q is "a" in this case

The response includes 3 same words "apple".I guess "apple" is
indexed to suggester dictionary in every shard,and
Suggester Component in multi shards join the response per shards.

I would like to merge "Apple" and get the result sorted by weight.
But I don't know what the weight means,so I can not merge
the merge weight values including same words.

Re: meaning of weight in Suggester response

Posted by Noriyuki TAKEI <nt...@sios.com>.
Perhaps weight means term frequency in collection?

If so,the merged result mentioned previous mail is as below,right?

apple(weight:22)
abacus(weight:14)
ability(weight:11)
absence(weight:4)



--
View this message in context: http://lucene.472066.n3.nabble.com/meaning-of-weight-in-Suggester-response-tp4319851p4319856.html
Sent from the Solr - User mailing list archive at Nabble.com.