HappyDeveloper
HappyDeveloper

Reputation: 12805

How to set min weight in sphinx API?

How do I set a minimum weight in the sphinx API?

I want to find all the rows whose weight is greater than say, 20.

Upvotes: 0

Views: 881

Answers (1)

Glen Solsberry
Glen Solsberry

Reputation: 12320

Just call setFilterFloatRange like

$q->SetFilterFloatRange('@weight', 20, 999999, true);

Upvotes: 1

Related Questions