# GroupChannelListQuery on ChannelName and NickName

**URL:** <https://community.sendbird.com/t/groupchannellistquery-on-channelname-and-nickname/8952>\
**Category:** Flutter\
**Tags:** group-channel, chatsdk, search, search-query\
**Created:** [January 23, 2024, 2:22pm UTC](https://community.sendbird.com/t/groupchannellistquery-on-channelname-and-nickname/8952 "2024-01-23T14:22:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saffi\_Zahid](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/saffi_zahid/32/4622_2.png) [@Saffi\_Zahid](https://community.sendbird.com/u/Saffi_Zahid)\
**Post date:** [January 23, 2024, 2:22pm UTC](https://community.sendbird.com/t/groupchannellistquery-on-channelname-and-nickname/8952/1 "2024-01-23T14:22:35Z")

</div>

I’m currently working on a feature where I need to search for channels based on either the Channel Name or Nickname containing a specific query. However, with my current approach, I’m only getting channels where both the Channel Name and Nickname contain the search query.

```auto
final listQuery = GroupChannelListQuery()
          ..channelNameContains = searchQuerys
          ..nicknameContains = searchQuerys
          ..queryType = GroupChannelListQueryType.or;

```

---

<div class="post-metadata">

**Author:** ![Tyler](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/tyler/32/810_2.png) [@Tyler](https://community.sendbird.com/u/Tyler)\
**Post date:** [January 24, 2024, 4:45am UTC](https://community.sendbird.com/t/groupchannellistquery-on-channelname-and-nickname/8952/2 "2024-01-24T04:45:38Z")

</div>

Hello @Saffi_Zahid,

`queryType` is only used when filtering on `userIdsIncludeFilter`. ([Ref](https://pub.dev/documentation/sendbird_chat_sdk/latest/sendbird_chat_sdk/GroupChannelListQuery-class.html))

You would need to make two separate queries if you want to search for either. By default, filter criteria is `AND` unless explicitly stated otherwise.
