Elasticsearch in Vapor: Getting Started | raywenderlich.com

Elasticsearch is a distributed search and analytics engine for all types of structured and unstructured data. In this tutorial, you’ll set up a Vapor server to interact with an Elasticsearch server, to store and retrieve recipe documents.


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/4781607-elasticsearch-in-vapor-getting-started
1 Like

Great tutorial, Thank you @cweinberger

1 Like

@yoele Really glad you like it! :]

Hello @shogunkaramazov @cweinberger hope you are safe during all this madness around the world.
I was wondering if you can point me to the right solution, I’m trying to search the information using the “searchDocuments” method, and query the Object property which is in the Recipe class, what would be the right way to query that ?

Thank you

Example: 
   struct Object {
     let itemX: String
     let itemY: String
   }

class Recipe {
   var Object: object
}

Well, I found the solution: searchTerm = “(object.itemX:(term))”

1 Like

@yoele Thank you for sharing your solution - much appreciated!

This tutorial is more than six months old so questions are no longer supported at the moment for it. Thank you!