Site
Home / Forum / Developers / Search a team by name

Search a team by name


Posted: 23 Aug 2021 21:09
Naino

Posts: 4
Joined: 2021

Hi,

The endpoint searchteams is really weird when searching for a team.
For example, https://www.thesportsdb.com/api/v1/json/1/searchteams.php?t=lakers should return the Los Angeles Lakers.
Why such a basic functionality is implemented that way? It should be a LIKE search, not a perfect match.
There is no way users would find their teams. By the way, the search on the website is a LIKE search.

Thanks.

Posted: 26 Aug 2021 21:52

zag


Posts: 3,551
Joined: 2020

Hi,

The endpoint searchteams is really weird when searching for a team.
For example, https://www.thesportsdb.com/api/v1/json/1/searchteams.php?t=lakers should return the Los Angeles Lakers.
Why such a basic functionality is implemented that way? It should be a LIKE search, not a perfect match.
There is no way users would find their teams. By the way, the search on the website is a LIKE search.

Thanks.


Basic reason is performance...

Doing a like search is significantly slower. We handle 10s of millions of hits so I had to compromise. I'm well aware of other solutions but they will need to wait for V2 of the API.

Posted: 30 Aug 2021 19:42
Ashik-Rahman

Posts: 1
Joined: 2021

argentina

Posted: 02 Sep 2021 14:33
Naino

Posts: 4
Joined: 2021


Basic reason is performance...

Doing a like search is significantly slower. We handle 10s of millions of hits so I had to compromise. I'm well aware of other solutions but they will need to wait for V2 of the API.


Alright, I guess you thought about Full Text Search. What's the database engine behind thesportsdb?
Do you have any ETA for this implementation? For me, it makes the whole API useless if I can't provide a real team search for the user. Any way I can help?


Who is Online?

In total there are 68 users online :: 3 registered, 0 hidden and 65 guests (based on users active over the past 5 minutes) Most users ever online was 424 on Fri Nov 10, 2017 9:02 pm

About Us

Discussion forum for TheSportsDB.com site and related topics

Rules

- Be Polite
- Respect other users
- Always post log files with issues
- Try to be helpful
- No Piracy discussion

Showing 0 to 4 (Total: 4)