In this chapter, you learned how MongoDB full-text search works by importing sample data and building a search and locate app. We went over text indexing and implemented some of the available options in the search API by performing search queries in the mongo shell. Also, when you moved the query from the shell to the app's backend, you learned how you can call async functions in Meteor Methods using Fibers and Promises. To use methods such as sort()
and limit()
, we used the official MongoDB for the Node.js driver, which helped us smoothly move from the mongo shell to Meteor. Finally, we built and assembled all our frontend components with the addition of a third-party mapping library called Leaflet.js.
In Chapter 7, Real-Time Maps, we will build a mapping application by exploring further topics, such as the built-in user account functionality in Meteor and user authentication flow in the redux-react-router module. As always, we'll take advantage of Meteor's full-stack reactivity...