Frage

I am implementing a Mongo database in my Android project. I will have a base of products (like TV's, printers, etc...) and I want to implement a "search by name" feature. But the main problem I'm facing is that I can't find a way to do a search which would give me semi-matches. I could implement it, but I'm afraid that it will slow down my base. I wonder if there are any good "Search engines" that work with Mongo?

War es hilfreich?

Lösung

One product to look at is elastic search. It has some built in features for doing type to find searches.

http://www.elasticsearch.org/

Andere Tipps

Assuming that you have a limited set of products to search against, your best bet is probably to add metadata to each product that you search against. Enable full text search on your primary name, description and metadata fields. http://docs.mongodb.org/manual/core/index-text/

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top