Site
Home / Forum / Developers / search teams using partial string

search teams using partial string


Posted: 27 Jun 2024 16:28
talhaZahid1996

Posts: 1
Joined: 2024

I want to implement a live search feature where the user enters part of a string, and I will retrieve all the teams that contain the query as a substring in the team name. Is there a possible solution for this?

Posted: 28 Jun 2024 10:42

zag


Posts: 3,527
Joined: 2020

I want to implement a live search feature where the user enters part of a string, and I will retrieve all the teams that contain the query as a substring in the team name. Is there a possible solution for this?

Yes it should work the same as the site search

Posted: 29 Jun 2024 07:57

Ovokx

Posts: 1,770
Joined: 2020

I want to implement a live search feature where the user enters part of a string, and I will retrieve all the teams that contain the query as a substring in the team name. Is there a possible solution for this?

Yes it should work the same as the site search


partial strings don't work for events on the site search. is it possible to improve it?

Posted: 29 Jun 2024 09:27

zag


Posts: 3,527
Joined: 2020

I want to implement a live search feature where the user enters part of a string, and I will retrieve all the teams that contain the query as a substring in the team name. Is there a possible solution for this?

Yes it should work the same as the site search

partial strings don't work for events on the site search. is it possible to improve it?


yes good idea, I have changed the search to full text now. Let me know if it works better.

Posted: 01 Jul 2024 15:28

zag


Posts: 3,527
Joined: 2020

Search for players and teams on the frontend website has been improved but I'm still not sure, please do have a test and let me know any weird results.

If it works I will add it to V2 of the API.

Posted: 24 Oct 2024 23:50
connorh


Posts: 1
Joined: 2024

Hi! I notice that search with a partial string works quite well in the frontend. For example, searches like "dodgers" and "steelers" return results. However, the v1 and v2 versions of the api do not return anything for the same queries. Is there any way we could get access to the same search that the frontend of the site uses? Thank you so much!


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