web: Preprocess search query from GraphQL before use.