tomwalder / php-appengine-search

Native Full Text Search for PHP on Google App Engine
Apache License 2.0
24 stars 4 forks source link

Sorting Not working #12

Open sathishmoo opened 8 years ago

sathishmoo commented 8 years ago

Hi while search , Based on VID i'm sorting but in result set in between some of the records are missing

my code is

$GLOBALS['obj_video_store'] ->search((new \Search\Query('VID <'.$_GET['lastRecordId']))->limit(10)->sort('VID'));

can you tell me what mistake i'm doing here, Please.

sathishmoo commented 8 years ago

Hi Tom,

I'm facing some issues while sort based on date

While sorting , result set is incorrect

tomwalder commented 8 years ago

I'll try and take a look this weekend!

phpso10 commented 7 years ago

Can someone help me? I am trying to Sort the results based on the Search API. everything is working fine, but don't know who to pass the Sort parameter ASC and DESCENDING along with SORT call.

$obj_query = (new \Search\Query('createdon > ' . $timex))
->fields(['channeldesc', 'channeltitle','voicedesc','uploadedby']) ->limit($items_per_page) ->offset($offset) ->sort('createdon',Query::ASC);

Can someone help, what I should be substituting in the place of "Query::ASC" to get sorted in Ascending order?

Thank you!

phpso10 commented 7 years ago

Tom -- can you please let me know how I should pass ASC and DESC to the sort function?

if I give sort ('createdon','DESC') its not working. please help. Thank you.

tomwalder commented 7 years ago

Hey there,

Sorry - snowed under at the moment. Will take a look ASAP