avalon
avalon

Reputation: 2291

sphinxsearch postgres sphinx_select disable match section

I use sphinx for postgres and run this query

SELECT id,weight FROM sphinx_select('sessionsearchsphinxidx','someword','', '', 0,50000,'ranker=wordcount')  

I want to use this method in case when no search query is defined. So in other words I want to return all records without any filter. Is it possible?

Upvotes: 0

Views: 59

Answers (1)

barryhunter
barryhunter

Reputation: 21091

Have you tried leaving the query blank, the second param.

Of course the weight will be meaningless as no query to match but otherwise should work.

Upvotes: 1

Related Questions