video-games-on-RAWG-react-app icon indicating copy to clipboard operation
video-games-on-RAWG-react-app copied to clipboard

[FEATURE] finetune strapi results w filters

Open theDavidBarton opened this issue 4 years ago • 0 comments

docs: https://strapi.io/documentation/3.0.0-beta.x/content-api/parameters.html#filters

e.g.: /videogame/54243-chuck-rock => https://snesnow.com/play/adventures-of-rocky-and-bullwinkle-and-friends-the-27.html

due to 'chuck rock' results are ordered by name, and Chuck Rock is only the 2nd result :

[
   {
      "id":27,
      "name":"Adventures of Rocky and Bullwinkle and Friends, The",
      "slug":"adventures-of-rocky-and-bullwinkle-and-friends-the",
      "ratingCount":1,
      "ratingValue":5,
      "description":null,
      "editorPick":false,
      "detailContent":null,
      "seoInfo":null,
      "created_at":"2019-01-11T21:11:19.000Z",
      "updated_at":"2020-03-25T17:59:13.000Z",
      "metadata":{
         "rawZip":"adventures-of-rocky-and-bullwinkle-and-friends-the/adventures-of-rocky-and-bullwinkle-and-friends-the.7z",
         "zip":"adventures-of-rocky-and-bullwinkle-and-friends-the/adventures-of-rocky-and-bullwinkle-and-friends-the.zip",
         "smc":"adventures-of-rocky-and-bullwinkle-and-friends-the/Adventures of Rocky and Bullwinkle and Friends, The (U) [h1C].smc",
         "images":[
            "adventures-of-rocky-and-bullwinkle-and-friends-the/images/snes_adventures_of_rocky_and_bullwinkle_and_friends,_the_1.gif",
            "adventures-of-rocky-and-bullwinkle-and-friends-the/images/snes_adventures_of_rocky_and_bullwinkle_and_friends,_the_2.gif"
         ]
      },
      "viewCount":98
   },
   {
      "id":219,
      "name":"Chuck Rock",
      "slug":"chuck-rock",
      "ratingCount":1,
      "ratingValue":5,
      "description":null,
      "editorPick":false,
      "detailContent":null,
      "seoInfo":null,
      "created_at":"2019-01-11T21:11:19.000Z",
      "updated_at":"2020-03-24T06:33:47.000Z",
      "metadata":{
         "rawZip":"chuck-rock/chuck-rock.7z",
         "zip":"chuck-rock/chuck-rock.zip",
         "smc":"chuck-rock/Chuck Rock (E) [!].smc",
         "images":[
            "chuck-rock/images/snes_chuck_rock_1.gif",
            "chuck-rock/images/snes_chuck_rock_2.gif"
         ]
      },
      "viewCount":44
   },
   {
      "id":695,
      "name":"Kabuki Rocks",
      "slug":"kabuki-rocks",
      "ratingCount":1,
      "ratingValue":5,
      "description":null,
      "editorPick":false,
      "detailContent":null,
      "seoInfo":null,
      "created_at":"2019-01-11T21:11:19.000Z",
      "updated_at":"2020-03-27T22:14:58.000Z",
      "metadata":{
         "rawZip":"kabuki-rocks/kabuki-rocks.7z",
         "zip":"kabuki-rocks/kabuki-rocks.zip",
         "smc":"kabuki-rocks/Kabuki Rocks (J) [a1].smc",
         "images":[
            "kabuki-rocks/images/snes_kabuki_rocks_1.gif",
            "kabuki-rocks/images/snes_kabuki_rocks_2.gif"
         ]
      },
      "viewCount":46
   },
   {
      "id":1097,
      "name":"Pocky And Rocky",
      "slug":"pocky-and-rocky",
      "ratingCount":1,
      "ratingValue":5,
      "description":null,
      "editorPick":false,
      "detailContent":null,
      "seoInfo":null,
      "created_at":"2019-01-11T21:11:19.000Z",
      "updated_at":"2020-03-27T07:31:10.000Z",
      "metadata":{
         "rawZip":"pocky-and-rocky/pocky-and-rocky.7z",
         "zip":"pocky-and-rocky/pocky-and-rocky.zip",
         "smc":"pocky-and-rocky/Pocky & Rocky (E) (Sample) (NG-Dump Known) [t1].smc",
         "images":null
      },
      "viewCount":39
   },
   {
      "id":1098,
      "name":"Pocky And Rocky 2",
      "slug":"pocky-and-rocky-2",
      "ratingCount":1,
      "ratingValue":5,
      "description":null,
      "editorPick":false,
      "detailContent":null,
      "seoInfo":null,
      "created_at":"2019-01-11T21:11:19.000Z",
      "updated_at":"2020-03-15T05:29:25.000Z",
      "metadata":{
         "rawZip":"pocky-and-rocky-2/pocky-and-rocky-2.7z",
         "zip":"pocky-and-rocky-2/pocky-and-rocky-2.zip",
         "smc":"pocky-and-rocky-2/Pocky & Rocky 2 (E).smc",
         "images":null
      },
      "viewCount":49
   },
   {
      "id":1179,
      "name":"Rock N' Roll Racing",
      "slug":"rock-n-roll-racing",
      "ratingCount":1,
      "ratingValue":5,
      "description":null,
      "editorPick":false,
      "detailContent":null,
      "seoInfo":null,
      "created_at":"2019-01-11T21:11:19.000Z",
      "updated_at":"2020-03-27T11:28:49.000Z",
      "metadata":{
         "rawZip":"rock-n-roll-racing/rock-n-roll-racing.7z",
         "images":[
            "rock-n-roll-racing/images/snes_rock_n_roll_racing_1.gif",
            "rock-n-roll-racing/images/snes_rock_n_roll_racing_2.gif"
         ]
      },
      "viewCount":61
   },
   {
      "id":1180,
      "name":"Rocketeer, The",
      "slug":"rocketeer-the",
      "ratingCount":1,
      "ratingValue":5,
      "description":null,
      "editorPick":false,
      "detailContent":null,
      "seoInfo":null,
      "created_at":"2019-01-11T21:11:19.000Z",
      "updated_at":"2020-03-23T15:24:13.000Z",
      "metadata":{
         "rawZip":"rocketeer-the/rocketeer-the.7z",
         "zip":"rocketeer-the/rocketeer-the.zip",
         "smc":"rocketeer-the/Rocketeer, The (U).smc",
         "images":null
      },
      "viewCount":35
   },
   {
      "id":1181,
      "name":"Rockman And Forte",
      "slug":"rockman-and-forte",
      "ratingCount":1,
      "ratingValue":5,
      "description":null,
      "editorPick":false,
      "detailContent":null,
      "seoInfo":null,
      "created_at":"2019-01-11T21:11:19.000Z",
      "updated_at":"2020-03-27T01:57:50.000Z",
      "metadata":{
         "rawZip":"rockman-and-forte/rockman-and-forte.7z",
         "zip":"rockman-and-forte/rockman-and-forte.zip",
         "smc":"rockman-and-forte/Rockman & Forte (J) [!].smc",
         "images":null
      },
      "viewCount":46
   },
   {
      "id":1182,
      "name":"Rocko's Modern Life - Spunky's Dangerous Day",
      "slug":"rockos-modern-life-spunkys-dangerous-day",
      "ratingCount":1,
      "ratingValue":5,
      "description":null,
      "editorPick":false,
      "detailContent":null,
      "seoInfo":null,
      "created_at":"2019-01-11T21:11:19.000Z",
      "updated_at":"2020-03-21T20:45:42.000Z",
      "metadata":{
         "rawZip":"rockos-modern-life-spunkys-dangerous-day/rockos-modern-life-spunkys-dangerous-day.7z",
         "images":[
            "rockos-modern-life-spunkys-dangerous-day/images/snes_rockos_modern_life_-_spunkys_dangerous_day_1.gif",
            "rockos-modern-life-spunkys-dangerous-day/images/snes_rockos_modern_life_-_spunkys_dangerous_day_2.gif"
         ]
      },
      "viewCount":54
   },
   {
      "id":1183,
      "name":"Rocky Rodent",
      "slug":"rocky-rodent",
      "ratingCount":1,
      "ratingValue":5,
      "description":null,
      "editorPick":false,
      "detailContent":null,
      "seoInfo":null,
      "created_at":"2019-01-11T21:11:19.000Z",
      "updated_at":"2020-03-16T10:21:05.000Z",
      "metadata":{
         "rawZip":"rocky-rodent/rocky-rodent.7z",
         "zip":"rocky-rodent/rocky-rodent.zip",
         "smc":"rocky-rodent/Rocky Rodent (E) [b1].smc",
         "images":null
      },
      "viewCount":36
   }
]

theDavidBarton avatar Mar 28 '20 19:03 theDavidBarton