---
layout: default
title: search
nav:
group: Liquid Variables
---
# search
The search object has the following attributes:
{% table_of_contents %}
{% anchor_link "search.performed", "search-performed" %}
Returns true if an HTML form with the attribute action="/search" was submitted successfully. This allows you to show content based on whether a search was performed or not.
search.results.
Returns the number of results found.
{% anchor_link "search.terms", "search-terms" %}Returns the string that was entered in the search input box. Use the highlight filter to apply a different style to any instances in the search results that match up with search.terms.
Input
{% highlight html %}{% raw %} {{ item.content | highlight: search.terms }} {% endraw %}{% endhighlight %}Output