Try it out!
Out-of-the-box, we get pretty powerful search functionalities with MongoDB, and you can explore the search further by trying out options from the preceding examples in the test collection; you can also insert new documents and find out how to build your search queries for different scenarios. For example, if you insert the following document, which is in French, would the search ignore the À
character assuming that the default language is English? Also, what do we need to do in order to ignore this character? Check this out using the following:
db.test.insert({name:'André Marcon', age:50, movie:'À vendre'})
Another great feature we get with MongoDB full-text search is that there is no need for manual reindexing of our data in order to make it searchable. In the previous examples, we inserted documents and searched on the content right away, without any extra steps. The content was available immediately, which makes the search real time. Other more powerful solutions, such as Solr...