Which packages are you using?
stream_chat_flutter
On what platforms did you experience the issue?
iOS
What version are you using?
stream_chat_flutter: ^6.9.0
What happened?
Hi.
I have a message in my chat abcdefghijklmnop.
Im building a search widget but the search api does not allow to partially match the message text.
It responds with some search results only if one word from my input matches the word in message text.
When I try to search abcd it returns the empty result.
Only when I have whole word match abcdefghijklmnop it returns non empty response.
here is a request that goes to server.
https://chat.stream-io-api.com/search?api_key=[MY_KEY]&payload={"filter_conditions":{"$and":[{"team":{"$eq":[MY_TEAM_ID]}},{"members":{"$in":[SOME_MEMBER_ID]}}]},"sort":[{"field":"created_at","direction":-1}],"message_filter_conditions":{"text":{"$q":"abcdefg"}},"limit":15}&user_id=[USER_ID]&connection_id=[CONNECTION_ID]
It starts working somehow if I use $autocomplete but it is not an option cause I need to search a part of word inside a message but $autocomplete only searches like startsWith
Steps to reproduce
Create `StreamMessageSearchListController` and try to search by part of the word.
Supporting info to reproduce
No response
Relevant log output
No response
Flutter analyze output
No response
Flutter doctor output
No response
Code of Conduct
Which packages are you using?
stream_chat_flutter
On what platforms did you experience the issue?
iOS
What version are you using?
stream_chat_flutter: ^6.9.0
What happened?
Hi.
I have a message in my chat
abcdefghijklmnop.Im building a search widget but the search api does not allow to partially match the message text.
It responds with some search results only if one word from my input matches the word in message text.
When I try to search
abcdit returns the empty result.Only when I have whole word match
abcdefghijklmnopit returns non empty response.here is a request that goes to server.
https://chat.stream-io-api.com/search?api_key=[MY_KEY]&payload={"filter_conditions":{"$and":[{"team":{"$eq":[MY_TEAM_ID]}},{"members":{"$in":[SOME_MEMBER_ID]}}]},"sort":[{"field":"created_at","direction":-1}],"message_filter_conditions":{"text":{"$q":"abcdefg"}},"limit":15}&user_id=[USER_ID]&connection_id=[CONNECTION_ID]
It starts working somehow if I use
$autocompletebut it is not an option cause I need to search a part of word inside a message but$autocompleteonly searches likestartsWithSteps to reproduce
Create `StreamMessageSearchListController` and try to search by part of the word.Supporting info to reproduce
No response
Relevant log output
No response
Flutter analyze output
No response
Flutter doctor output
No response
Code of Conduct