Let's talk

Knowledge

Website search – how to design the perfect search field

Persooa Editorial · February 16, 2024 · 8 min read

Apply proven methods of designing website search in order to raise the conversion rate in your e-commerce business. A search function is more than just a place to type text and a button to submit it.

Search is a basic element of websites with a large amount of content. Users count on this tool when they have to find their way around a complicated structure or a countless number of products/services. In this post we want to share tips and good practices for building the perfect search field with you.

Let us assume you are on a website that sells sports shoes and you are looking for a specific model. Will you search the whole site and page after page of results until you find exactly that one? No, you will simply type the model/type name into the search field, press enter and count on finding that specific model.

The design and functionality of the search field have been key elements contributing to the success of many e-commerce sites. Amazon is a great, very illustrative example. A well-designed, effective search tool makes it easier to find the product you are looking for, suggests similar items, corrects spelling mistakes… All in order to improve the user experience.

The search function on a website is often an underappreciated element. It is the invisible hero we all use and cannot imagine life without. But can it be turned into a tool that helps increase an e-store's profitability?

Let us talk about the best practices for designing a search field on a website. What should you pay attention to and how do you prepare to meet the needs of desktop, tablet and phone users?

Designing with mobile devices in mind

More than 50% of web traffic worldwide comes from mobile users, and their share grows year after year. Taking that statistic into account, the best practice in designing a search field is building it with mobile devices in mind.

The design of a search field from a UX perspective should take the screen space of a mobile device into account. It should be clear, easily accessible and intuitive to use. Floating search fields can also be a good idea.

Visibility

Do not force users to search for… the search box. Some designers make the serious mistake of hiding the search function behind a menu button. Others make the search field insufficiently prominent. That is an extremely bad direction and one you absolutely should not follow.

It is important to place the search field in a visible spot and show it in full, because hiding it behind an icon reduces its visibility and increases interaction costs. Make sure the magnifying glass icon (or another analogous one) is recognizable as a search symbol. Place the search button next to the field and use background colors contrasting with your site's theme in order to make it more visible.

On mobile devices, the best results come from a floating search field placed at the top of the screen – at its central point. Research indicates that the top left or top right corner above the navigation bar can be the best places for the search function on desktop versions.

Visual consistency across the site

Make sure the search field is in the same place on all the pages of your site. The field should also look identical, and even the magnifying glass icon should be placed in the same spot on subsequent pages.

The user will expect to find the search field where it was on the landing page. If it is not there on other pages or looks different, that can be disorienting and affect conversions.

Autocomplete

It often happens that users are not sure exactly what they are looking for, or the term they want is too long to type in full. In such situations the autocomplete function turns out to be an absolute lifesaver. Autocomplete is a mechanism that predicts what the user may be looking for and provides them with relevant suggestions. Those can be based on what they typed, their search history, the current page and many, many other factors.

This feature opens the door to countless possibilities. For a single query you can propose several search results correlating with the input, based on the product category, the most popular brands and so on. By presenting the user with a whole range of relevant options, you increase the likelihood of them converting.

Images in results

Search results containing product images can affect sales, especially in the fashion industry. Users often have an image of the product they are looking for in their head before they even visit the store's site. So if they see a matching image in the search results, the likelihood of conversion rises considerably.

Placeholder text

Placeholder text helps users understand what they can search for or type into the search field. For example: if you want to show that the user can search the site using various parameters, you can put a sample term in the search field (for example a shoe size). Adding placeholder text to input fields is very simple thanks to HTML5.

Keeping the keyword in the field

Once a search is complete, the keyword should stay visible in the search field. This lets the user edit their query and search again if they have in the meantime thought of a way to refine the term they are looking for. This small detail considerably improves the user experience and lowers the bounce rate. Make sure the search field remembers and displays the keyword from the last query. In some cases that can reactivate purchase intent and bring the visitor back onto the buying path.

03 Site search has to be backed by technology

Designing a search bar from a UI and UX perspective is not only about visual aesthetics. What is crucial is the actual functionality of the search mechanism on your site. Here are several elements worth including in order to get optimal results.

Speed

Internet users do not like waiting; a drawn-out wait for search results means almost automatically switching to a different site. Nobody wants to wait for search results to load - and especially not when even the autocomplete function does not work instantly.

Response speed is crucial for the user's shopping experience. If visitors do not get results immediately, they will probably leave the site and decide to buy from a competitor, or abandon their buying plans altogether.

See our solutions - Abandoned search

Match quality

Users do not always – in fact rather rarely – type exact, precise keywords. They may also make a mistake, introduce a typo or use a synonym. The search algorithm should be advanced enough to recognize the user's intent even in such situations and deliver results that are as relevant as possible.

Voice search is becoming an increasingly standard feature and is especially popular on mobile devices. It is a comfortable way of searching content for users who are, for example, lying in bed with their phone and using it with one hand only.

It also makes search more accessible for people with disabilities who may have difficulty typing queries into a search box. It is one of the most important accessibility features. By adding it to your search field, you open your company up to a wider circle of audiences.

If you decide to add a voice search function to your search bar, remember to use a microphone icon. It is widely recognized as the symbol of voice search, which will let users take advantage of this option quickly.

Dynamic filters

Filters have become a popular tool in e-commerce, letting users search for products by various criteria. The purpose of filters is delivering a more personalized shopping experience.

Dynamic filters are a feature that makes shopping even more convenient. They automatically display only the filters relevant to the chosen category. That means that if a user is looking for a guitar, they will be able to filter results by the number of strings, but such an option will not appear for drum kits. According to the data available to us, a large share of e-commerce businesses recorded around a 26% increase in conversion after implementing dynamic filters.

Below we point out additional search results page options worth including when designing an online store:

Categories – adding categories can considerably narrow search results and make it easier for visitors to find the products they want. For example shoes, clothing and accessories can be divided into categories by gender.

Results per page – displaying around twenty results per page is usually appropriate. It is a number that presents enough products without overwhelming the visitor with too wide a range of options.

Descriptions – it is a good idea to include descriptions with products on the search page. Going even beyond the strictly technical product specification, you can add a few sentences that will catch the user's attention and encourage them to click.

Brands – filtering results by brand is a very effective solution. You can build on customers' existing loyalty to a given brand in order to increase sales on your site.

04 Personalization based on previous search behavior

A user's online "buying journey" may start with a search, but it certainly does not always end with a purchase. Users may return to a site several times before deciding to buy

An advanced search tool makes it possible to use users' previous visits to the site. Thanks to the data they left behind, you can deliver personalized search experiences for future visits. The algorithm uses data from their previous search history in order to optimize the search process and present users with products that are likely to interest them.

See our offering - AI search

Work on your content for better results!

The content on your site is extremely important. Well-written, persuasive copy can "cast a spell" on your site's visitors and convince them to buy. It does not even have to be directly sales-driven! Make sure all your products are described thoroughly and that the descriptions cover all the important features. Check whether your products are presented with high-quality photos of uniform dimensions. Price information and a size chart (where applicable) should be easy to find on every product. Pay close attention to the content of your website, because it is an integral part of the user experience.

Read also - "No results" search pages: how "zero pages" affect the shopping experience

05 Well-designed site search is one of the keys to success

Designing website search can be a big challenge. If it is done correctly, however, it has the potential to increase your conversion rate and contribute to your business growth. Do not underestimate the small details – these aspects of the design are crucial, because they affect the user experience.

The UX and UI design of a search bar should always be created with mobile phone users in mind and should provide the highest level of functionality. That is why you should always choose high-quality, fast tools that offer advanced features such as faceted search, personalized search results, autocomplete and others. Technology is what will help you build a competitive advantage.

Let’s talk

Let us talk about your growth.

Book a free consultation — we will show you where a measurable result lands fastest.