ajones05 / seearound.me-ionic

0 stars 0 forks source link

Search doesn't seem to search all posts... #233

Closed ajones05 closed 7 years ago

ajones05 commented 7 years ago

Is it maybe just searching the first 15? img_5571

abdulhafeez commented 7 years ago

@yuriyua Perhaps, this is server side issue. Can you look into it. Let me know if I need to do anything.

yuriyua commented 7 years ago

I see the parameter filter=0 (My Posts) in the request

2017-07-20T15:07:19+00:00 INFO (6): /mobile/myposts
>> array (
  'latitude' => '37.80239734973978',
  'longitude' => '-122.25766661766603',
  'radious' => '1.6',
  'token' => '4HS8KM3I5VR38HCLZI7FCC77C2ISKZIPGCY422M6XF96ZLRY71EIDLQQNBIAA51S',
  'searchText' => 'Restaurant',
  'filter' => '0',
  'start' => '0',
)
<< array (
  'status' => 'SUCCESS',
  'message' => 'Posts rendred successfully',
  'result' => 
  array (
    0 => 
    array (
      'id' => '4298',
      'user_id' => '2',
      'category_id' => '1',
      'news' => 'Noo! I hadn\'t gotten to try it yet but was excited to have a legit Mexican place here! Hopefully the replacement is good... and hopefully they re-open somewhere nearby! http://m.eastbayexpress.com/WhatTheFork/archives/2016/10/27/mid-week-menu-aztecali-shutters-but-will-remain-a-mexican-restaurant',
      'created_date' => '9 months ago',
      'latitude' => '37.8166133',
      'longitude' => '-122.2572806',
      'Address' => '307 Oakland Avenue, Oakland, CA 94611, US',
      'street_name' => 'Oakland Avenue',
      'street_number' => '307',
      'city' => 'Oakland',
      'state' => 'CA',
      'country' => 'US',
      'zip' => '94611',
      'comment_count' => '1',
      'vote' => '2',
      'isLikedByUser' => '0',
      'Name' => 'Bill',
      'Profile_image' => 'https://www.seearound.me/uploads/n3iqs397nt.jpg',
      'canEdit' => 1,
      'canVote' => 0,
      'isFriend' => 0,
      'link_url' => 'http://m.eastbayexpress.com/WhatTheFork/archives/2016/10/27/mid-week-menu-aztecali-shutters-but-will-remain-a-mexican-restaurant',
      'link_title' => 'Mid-Week Menu: Aztecali Shutters, But Will Remain a Mexican Restaurant',
      'link_description' => 'Welcome to the Mid-Week Menu, our roundup of East Bay food news. 1) Let’s start with the bad news: Aztecali (303A Oakland Ave., Oakland), probably...',
      'link_author' => 'Luke Tsai',
      'link_thumb' => 'https://www.seearound.me/thumb448x320/hes4lqci7h.jpg',
      'link_image' => 'https://www.seearound.me/uploads/hes4lqci7h.jpg',
    ),
  ),
)

You have just one post with keyword Restaurant in this location

http://www.seearound.me/admin/mobile-api/myposts/token/4HS8KM3I5VR38HCLZI7FCC77C2ISKZIPGCY422M6XF96ZLRY71EIDLQQNBIAA51S/latitude/37.80239734973978/longitude/-122.25766661766603/searchText/Restaurant/radious/1.6/filter/0/submit

@abdulhafeez you can remove the parameter filter (or set the value '') for list posts from all users

abdulhafeez commented 7 years ago

This is also related to #234. Once APIs are modified, it will be easier to fix.

abdulhafeez commented 7 years ago

Fixed