SphinxQL Query Builder Returns The Last Row Instead of All Rows

Tuesday, November 3, 2015

The print_r from the $result using the SphinxQL Query Builder only returns the last row from the result of 5 num_rows:



        $result = SphinxQL::create($conn)
->select()
->from('data')
->where('col1', 'like', '%hello-world%')
->where('col2', '=', 1)
->orderBy('date', ASC)
->limit(50)
->execute();

print_r($result);


Thanks for your advice or solution on this.

0 comments:

Post a Comment