Open click2tman opened 7 years ago
@click2tman how should we prioritize sorting? suppose the user sets two different sortings which one should we prioritize?
fix with the commit b0b32bd5c01b67f28c9440787e0542fd8757e80e
If all three sorting filters are set, use the following priority. This is also the default sorting order if not sorting is selected. 1.distance 2.ratings 3.reviews
Ok sure
HI, the api calls are fine. the result coming back from server are not ordered even though it is mentioned in the url.
In the search query, make sure you replace empty space with a '+' like "Restaurant+and+Food" when a user types "Restaurant and Food" or select the category Restaurant and Food. You can visit http://slbr.sl/api/v1/slbiz/search?name=Lamtech&category=&chiefdom=&keyword=&city=&claimed=All&sort_by=comment_count&sort_order=DESC to see the various filters and how they work.
Please set the filter defaults to the following; Filter
Sort Default
Make sure Filter business is working (filter by Open now, category, filter by keyword, filter by chiefdom, filter by city/village/town, sort by distance, sort by number of reviews, sort by ratings) and disable filter by claimed).
Filter by Open Now should be created based on the variable that displays "Open or Closed". Users should be able to filter and display only businesses that are open or closed.
Here is the full query for Filter and sort screen FILTER BY Filter by open now http://slbr.sl/api/v1/slbiz/search.json?category=education Filter by claimed http://slbr.sl/api/v1/slbiz/search.json?claimed=0 http://slbr.sl/api/v1/slbiz/search.json?claimed=1 Filter by Category http://slbr.sl/api/v1/slbiz/search.json?category=education Filter by keyword http://slbr.sl/api/v1/slbiz/search.json?keyword=Preschools Filter by chiefdom http://slbr.sl/api/v1/slbiz/search.json?chiefdom=kakua Filter by Village/Town/City http://slbr.sl/api/v1/slbiz/search.json?city=bo
SORT BY Sort by distance http://slbr.sl/api/v1/slbiz/search.json?sort_by=field_geofield_distance&sort_order=DESC http://slbr.sl/api/v1/slbiz/search.json?sort_by=field_geofield_distance&sort_order=ASC Sort by Reviews http://slbr.sl/api/v1/slbiz/search.json?sort_by=comment_count&sort_order=DESC http://slbr.sl/api/v1/slbiz/search.json?sort_by=comment_count&sort_order=ASC Sort by Ratings http://slbr.sl/api/v1/slbiz/search.json?sort_by=field_ltc_biz_rating_rating&sort_order=DESC http://slbr.sl/api/v1/slbiz/search.json?sort_by=field_ltc_biz_rating_rating&sort_order=ASC
Full Query with filter by and sort by for Filter by category=Hotel, Tourism and Travel, chiefdom=Freetown, keyword=Hotel, City=Freetown, claimed=0, sort by number of reviews in Descending order http://slbr.sl/api/v1/slbiz/search.json?category=%22Hotel%2C+Tourism+and+Travel%22&chiefdom=Freetown&keyword=Hotel&city=Freetown&claimed=0&sort_by=comment_count&sort_order=DESC
Screenshot