--- id: search title: Search Operation --- This guide explains how to perform serverside search operation on a **Table** component in ToolJet.
3. Set the value of the **Data** property of the **Table** to `{{queries.
2. Edit the query, as follow:
```sql
SELECT * FROM public.sample_data_orders
WHERE city ILIKE '%{{components.table1.searchText}}%' OR
country ILIKE '%{{components.table1.searchText}}%' OR
state ILIKE '%{{components.table1.searchText}}%'
LIMIT 100
```
The above query searches for the searched text in city, state and country column on server side and return the data.
This will run the query and fetch the data every time something is searched.
4. Add Loading State, navigate to the **Table** properties under Additional Actions. Click on the **fx** icon next to Loading State and enter `{{queries.getOrders.isLoading}}` in the field.
This is how serverside search operation is implemented in ToolJet's **Table** component. Now when a search is performed in the **Table**, the query is executed on the server, allowing the search to be applied across the entire dataset.