Create a search field similar to the search field in the discount section?

If you want to get all product tags, you need to query on the shop and you’ll get it easily instead of going through products and running loopers on it.

{
  shop {
    productTags(first: 250) {
      edges {
        node
      }
      pageInfo {
        hasNextPage
      }
    }
  }
}

And you can build all your queries with docs on Shopify’s GraphiQL interface which is available here https://shopify.dev/graphiql/admin-graphiql . Hit the Explore button and you’re good to go!