Umg searching

When a client searches for a session it returns a list of all the servers that are currently running. I want to have two game modes, free-for-all and team Deathmatch, when the client searches how would i filter my return list so it only returns the servers that are of the gamemode that they searched for.

For example if i were to search for the game mode Team Deathmatch it would only return a list of servers that are of Team Deathmatch and not all servers.
I have the searching done i just dont know how to filter the servers for a certain game mode and when hosting a game setting it to a certain game mode.