Accelerate search experiences with Elastic App Search and Google Cloud Firestore

blog-logo-app-search-720x420.png

Today, we’re excited to announce that the Elastic App Search extension for Google Cloud Firestore is now available. Developers can easily add search functionality to mobile and web-based applications built on Firestore with just a few clicks from the Firebase extensions directory.

Deliver more customer value

One of the most important customer requirements for mobile and web-based applications is to have interactive and rich search functionality. Customers expect fast results, whether they are searching for a product in your store, an article on your support site, or a post in your company blog. The Elastic App Search extension for Google Cloud Firestore provides robust relevance tuning so you can customize search results for your specific Firebase application data and customer preferences. Query suggestions, typo tolerance, and filters and facets also help you deliver a more refined search experience. Plus, Elastic App Search analytics let you measure and tune your search to easily adapt and scale as requirements change. You can focus on areas of improvement with complete visibility into customer search behavior and trends within your applications.

Streamline installation and management

Many developers use Firebase to reduce development tasks for mobile and web-based applications, create new products faster, and keep up with customer demands. Firestore is a noSQL database available through both Firebase and Google Cloud, that stores and syncs data for applications. Google and Elastic have worked together to provide an easy-to-use, low-friction way to build powerful search experiences for applications through the Firebase extension for Firestore.

In the past, building an effective search experience within an application could be challenging. Now you can avoid time-consuming installations or software maintenance upkeep, giving you time to focus on business goals and improvements to your application. You can also leverage the scalability and speed of Elasticsearch along with relevance models optimized for real-life search, intuitive dashboards and fast setup.

Getting started

Now you are only a few clicks away from getting started with the Elastic App Search extension for Google Cloud Firestore. Let’s go through the steps to ensure the best experience for you and your customers.

First, we’ll set up an Enterprise Search deployment:

  1. Create an App Search project on Cloud. You can do so via the Create Deployment page.
 
  1. Once the deployment is created, in Kibana click on App Search in the sidebar. Create the engine you’d like to use.
 
  1. You’ll need a few pieces of information from App Search
    1. The name of the engine you just created
    2. An App Search private key
    3. The base URL for your Enterprise Search instance

You can find the private key and base URL in the Credentials page: App Search -> Credentials in the sidebar.

 

Our App Search engine is now ready to receive documents from Firestore.

  1. Go to the Elastic App Search extension in the Firebase extensions directory, and install it to your project.
  2. There will be a few fields you need to fill out besides the information you gathered from App Search
    1. Collection path is the name of the collection where your data will be stored.
    2. Indexed fields — App Search will only index the fields you define. Generally, you’d choose only the fields you want to search over and return.
 
  1. Create your Firestore database and collection if you haven’t yet, ensuring the Collection ID and path match what was entered.

And now you’ll have access to a suite of search tools like relevance tuning, analytics, and everything you need to build a complete search interface.

As you add documents to your collection, they will be indexed into App Search.

If you have existing documents, you’ll need to backfill existing documents — follow the instructions provided in the “How this extension works” section of the Search with Elastic App Search extension in the Firebase extensions directory.

From there, you can search by calling the Search endpoint in App Search. Learn more in the App Search documentation.

If you need to set up a search experience, Search UI is a Javascript library with React components that can help. Visit the Search UI GitHub repo to learn more.

Wrapping up

Elastic is constantly making it easier for customers to run where they want and use what they want — and the Elastic App Search Extension for Google Cloud Firestore is the latest example of that. Now that you know how to set up your Elastic App Search extension, you can check it out in the Firebase extensions directory or visit elastic.co.