K
K
Khurshed Abdujalil2017-04-12 20:04:38
Sphinx
Khurshed Abdujalil, 2017-04-12 20:04:38

How to calculate weight in sphinx?

I make such a request:
there are fields id, text, active
added different data with different texts, somewhere less, somewhere more I make a request

SELECT id, weight() as weight FROM new_index  LIMIT 0, 10;

all weight is equal to 1, is it correct to think so or what am I doing wrong? Or is the data small that it rounds everyone up to 1?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Puma Thailand, 2017-04-13
@akhur

Do you even know what weight is?
Maybe you should first understand this and the question of why it is equal to one will automatically fall off.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question