Variant Generator

Hello. I have query "iphone white" and 2 rules: i can replace "white" to "black" and "iphone" to "xiaomi" - can i somehow ask ElasticSearch generate for me all possible variants: "iphone white", "iphone black", "xiaomi white", "xiaomi black"?

https://www.elastic.co/guide/en/elasticsearch/guide/current/using-synonyms.html may be what you are after.