tchiotludo / akhq

Kafka GUI for Apache Kafka to manage topics, topics data, consumers group, schema registry, connect and more...
https://akhq.io/
Apache License 2.0
3.39k stars 655 forks source link

Feature / Multi-value filtering for a topic content #1664

Open JesusAparicioOrtiz opened 8 months ago

JesusAparicioOrtiz commented 8 months ago

Hello @tchiotludo !

Related to #537, I have been using AKHQ for a while and have noticed that there is no functionality to filter by multiple fields of a topic record simultaneously. There is a Search option which allows filtering by key and value using an AND operator. However, it is only allowed to search by a single literal in each field. It would be great if a multi-value search were implemented. So for example, a user could search in a topic with key {productId, storeId and date} for a record with productId = XXX AND date = XXX using something like productId=XXX && date=XXX by an additional search option apart from [EQUALS, CONTAINS, NOT CONTAINS]

What do you think about this feature? I can try to implement it, thanks in advance!

AlexisSouquiere commented 8 months ago

@JesusAparicioOrtiz the implementation (improved in #1538) already support multiple search patterns (based on a whitespace separator) but it applies an OR instead of a AND (in your request) image

I agree it can be interesting to have flexibility and support both OR and AND but it can be tricky to implement 😄

JesusAparicioOrtiz commented 8 months ago

@AlexisSouquiere that's it, in cases where you want to find specific records would be really useful. I will try to implement it!