Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The search is not working as expected. #3538

Closed
Zee-93 opened this issue Dec 18, 2024 · 6 comments
Closed

The search is not working as expected. #3538

Zee-93 opened this issue Dec 18, 2024 · 6 comments
Labels
❓ Question Question regarding a specific subject

Comments

@Zee-93
Copy link

Zee-93 commented Dec 18, 2024

What did you do?

I entered a name in the search bar, and eventually it didnt filter out the channels by name.

What did you expect to happen?

I expected that search will return the list with the names which i entered in textbox.

What happened instead?

Instead of showing a list with the names it shows all those conversations which had the search text in them in the last sent message.

GetStream Environment

ios

GetStream Chat version:
4.28.0

GetStream Chat frameworks: StreamChat, StreamChatUI
streamChat, StreamChatUI

iOS version:
16-17-18

Swift version:
4,5

Xcode version:
16.2

Device:
All iphones

Additional context

A video recording is attached for the reference.

Screen.Recording.2024-12-18.at.12.49.02.PM.mov
@nuno-vieira
Copy link
Member

Hi @Zee-93,

At the moment, is not possible to search by Channel and Messages at the same time. You can only search by one of them.

Please read the docs on how to configure search: https://getstream.io/chat/docs/sdk/ios/uikit/components/channel-list/#search

Thank you,
Nuno

@nuno-vieira nuno-vieira added the ❓ Question Question regarding a specific subject label Dec 18, 2024
@Zee-93
Copy link
Author

Zee-93 commented Dec 18, 2024 via email

@nuno-vieira
Copy link
Member

@Zee-93

Have you read the document I provided? It is pretty clear.

Also, make sure you update the SDK to the latest version to have the configuration available.

Best,
Nuno

@Zee-93
Copy link
Author

Zee-93 commented Dec 23, 2024

@nuno-vieira The issue still persist. I have implemented the said changes and now search does not display any results. Please see the attached video. I have also added a snapshot of the code which shows that i have applied the searchType as "channels".

Screenshot 2024-12-23 at 11 12 26 AM
Search_23.mov

@nuno-vieira
Copy link
Member

@Zee-93 You already opened the exact same issue here: #3262

Channel search only works by channel names. If the channel does not have a name, it won't work. Searching by channel member name has performance issues, so it is not supported in the iOS SDK at the moment.

We will let you know once the backend supports this.

@Zee-93
Copy link
Author

Zee-93 commented Dec 24, 2024

@nuno-vieira How can we request this feature. Also if we dont set any channel name then whats the default channel name, so that we atleast see the search working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❓ Question Question regarding a specific subject
Projects
None yet
Development

No branches or pull requests

2 participants