Site
Home / Forum / Developers / Search for team by name not work for basket

Search for team by name not work for basket


Posted: 25 Jan 2022 21:18
joly
Posts: 4
Joined: 2021-11-21

the search for a team no longer works for basketball, football is ok


zag
Posted: 25 Jan 2022 22:10
curswine
Posts: 865
Joined: 2020-06-17

Post what you tried.

https://www.thesportsdb.com/api/v1/json/{API_KEY}/searchteams.php?t=Chicago_Bulls
https://www.thesportsdb.com/api/v1/json/{API_KEY}/searchteams.php?t=Chicago%20Bulls

Both work fine for me.

Posted: 26 Jan 2022 15:16
joly
Posts: 4
Joined: 2021-11-21

With "Chicago" result is null

Posted: 26 Jan 2022 15:28
curswine
Posts: 865
Joined: 2020-06-17

With "Chicago" result is null

Partial strings aren't supported.

If you search for "Paris" then those teams don't show either, so its not just football.

Posted: 26 Jan 2022 15:34
joly
Posts: 4
Joined: 2021-11-21

Partial strings worked until yesterday

Posted: 27 Jan 2022 19:29

zag
Posts: 3,323
Joined: 2020-03-23

Partial strings worked until yesterday

Yes sorry I had to disable fuzzy search for performance reasons. I will take a look at the possibility of making it available again, now the site is back to full speed.

Posted: 27 Jan 2022 20:10
curswine
Posts: 865
Joined: 2020-06-17

Partial strings worked until yesterday

My apologies, I wasn't aware that partial/fuzzy strings were available.

Posted: 28 Jan 2022 21:48
joly
Posts: 4
Joined: 2021-11-21

thank you very much

Posted: 28 Jan 2022 22:26

zag
Posts: 3,323
Joined: 2020-03-23

thank you very much

I'm debating whether to re-introduce this as a lot of people use it for simple team lookups. Can I ask what your use case is?

Posted: 29 Jan 2022 17:34
snikay
Posts: 3
Joined: 2021-11-13

hey there.
i just ran into the exact same problem with the (newly working) Plex-Agent
https://github.com/mmmmmtasty/SportScanner/issues/32

filenames are often only "packers.vs.ravens", which results in ... well, no result. because it needs the full name "green bay packers vs Baltimore ravens".

So +1 for adding fuzzy search again^^

Posted: 29 Jan 2022 18:53
jbalcorn
Posts: 20
Joined: 2022-01-24

Would fuzzy search work for events? or just for team lookups?

Hopefully fixing the SportScanner API key issue helped.

Posted: 30 Jan 2022 20:52

zag
Posts: 3,323
Joined: 2020-03-23

Sure all fixed now. Site speed seems stable after some tests so it should be permanent.


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 12 (Total: 12)