/series/search ordering in v2 for series with "The" in the name

A place for developers to advertise their TheTVDB.com enabled app and get help from other developers with the API.
xnejp03
Posts: 3
Joined: Fri Oct 01, 2010 5:33 pm

/series/search ordering in v2 for series with "The" in the name

Postby xnejp03 » Thu Apr 05, 2018 2:09 pm

Hi,

it seems the priority of the results is sometimes wrong for series search results. Doing

Code: Select all

https://api.thetvdb.com/search/series?name=colony


Returns

Code: Select all

{
  "data": [
    {
      "aliases": [],
      "banner": "graphical/105521-g4.jpg",
      "firstAired": "2009-07-21",
      "id": 105521,
      "network": "Discovery",
      "overview": "The Colony is a controlled experiment to see exactly what it would take to survive and rebuild under these circumstances. For 10 weeks, a group of 10 volunteers, whose backgrounds and expertise represent a cross-section of modern society, are isolated in an urban environment outside Los Angeles and tasked with creating a livable society\r\n\r\nWith no electricity from the grid, no running water and no communication with the outside world, all the volunteers have to work with are their skills and whatever tools and supplies they can scavenge from their surroundings.\r\n\r\nExperts from the fields of homeland security, engineering and psychology have helped design the world of The Colony to reflect elements from both real-life disasters and models of what the future could look like after a global viral outbreak.",
      "seriesName": "The Colony",
      "status": "Ended"
    },
    {
      "aliases": [],
      "banner": "graphical/284210-g2.jpg",
      "firstAired": "2016-01-14",
      "id": 284210,
      "network": "USA Network",
      "overview": "Set in the near future, Los Angeles has been walled-off and isolated by a mysterious occupying force. “Colony” centers on a family torn by opposing forces, struggling to balance difficult decisions to stay together while trying to survive in the new world order.\r\n\r\nWhile some people choose to collaborate with the authorities and benefit from the occupation, others rebel and suffer the consequences. Former FBI agent Will Bowman has a more complicated role: he's being forced to collaborate with the proxy government in order to protect his family and recover his son, who was separated during the initial invasion.",
      "seriesName": "Colony",
      "status": "Continuing"
    },
    {
      "aliases": [
        "The Colony Australia"
      ],
      "banner": "graphical/142011-g.jpg",
      "firstAired": "2005-01-26",
      "id": 142011,
      "network": "SBS",
      "overview": "Australia’s first living history series is a blend of historical discovery, social jeopardy, adventure challenge and experiential learning as pampered 21st Century ‘pioneers’ attempt to prove they’re tough enough to survive their historical ordeal. Against this backdrop, the series explores the gripping story of the first settlements.\r\n\r\nThis six-part series transports a group of English, Irish and Australians, both Indigenous and European, back in time to the Australia of their ancestors. Living the life of free settlers, convicts and local Aboriginal people, they experience the unforgiving toughness of the colony of New South Wales as it was 200 years ago.",
      "seriesName": "The Colony (Australia)",
      "status": "Ended"
    },
    {
      "aliases": [],
      "banner": "graphical/259064-g.jpg",
      "firstAired": "2012-05-29",
      "id": 259064,
      "network": "National Geographic (US)",
      "overview": "Meet the Hutterites—a small religious colony in rural Montana who holds desperately to their sacred traditions while fighting the modern temptations of the outside world. King Colony is made up of 59 people and they are almost all related. This family lives together, works together, and worships God together, 7 days a week, 365 days a year, for their entire lives. And, like any family, this one doesn’t always agree. Most of the colony is holding tight to the age-old traditions of their ancestors, while others are flirting with modern society. Some feel that bringing modern technology, education, and ideas into the colony will only help it, while others fear that this modern way of thinking threatens their very existence. We follow the men, the women, the young, and the old, as they strive to live as proper Hutterites. Some will succeed, some will fail, and everyone will have a choice to make. This is the very first glimpse into the world of the Hutterites. ",
      "seriesName": "American Colony Meet the Hutterites",
      "status": "Ended"
    }
  ]
}


As you can see, the 100% match of "Colony" is 2nd, after "The Colony".

Same happens when searching for "Vikings". The result including "The" is preferred, which is wrong.