Search using regular expressions and asterisks

This article describes how to search for records by key or value using regular expressions or KaDeck's asterisk search feature.

 

Introduction

The search functionality can be useful when working with no structured data. When working with Avro or JSON or a custom codec, we recommend using the attribute filters, as they are more convenient to use.

mceclip0.png

Fig. 1 The search bar

Connect to a server and go to the record browser. Select a topic that contains the records you want to search and click on "Search" in the top main menu of the record list.

You will see two input fields in the main menu now: depending on where you want to look for your search string, use the key or the value field. You can also search for a term in key and value independently at once.

 

Regular expressions

To use regular expressions in the search input field, write "regex:" followed by your regular expression.

Note: you always need to match the whole string.

Example:
We are looking for a key that contains "needle". We enter the following in the key search field:

regex:.*needle.*

 

Asterisk search

If you are looking for values that contain, begin, or end with a specific string, we recommend using asterisk search. An asterisk (*) is placed at the beginning, at the end, or on both sides of the term, depending on what you are looking for.

 

Example:
Searching for data that contains "needle":

*needle* 

Searching for data with suffix "needle":

*needle

Searching for data with prefix "needle":

needle*

 

Was this article helpful?
0 out of 1 found this helpful

Comments

0 comments

Please sign in to leave a comment.