0

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?

avalon
  • 2,231
  • 3
  • 24
  • 49

1 Answers1

1

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.

barryhunter
  • 20,886
  • 3
  • 30
  • 43