Better Search (Again!)

Posted by

A while ago we moved from using our default database search functionality to using a dedicated search server for ingredient searches. It's much faster, consistent between autocomplete and actual search results, matches partial searches, more powerful with filtering, and just more robust.

However, our initial implementation fell short in a couple areas, which we've worked to improve. You can read all about it below!


First, it didn't stem words. Meaning that if an ingredient was stored as "raspberries" and you searched "raspberry", you wouldn't get that "raspberries" ingredient in your result. So we're now using a stemming library to make sure the root word is used for the search rather than the specific version of the word (plural, past tense, etc.).

This gives more reliable search results and includes better options that otherwise might have been missed if using the exact search term and ingredient name.

Fuzziness and Typos

The other thing that we now account for is typos and small differences in words. Now, if you mistype something (or even if you don't), it'll compare the search term to similar results (within reason) to see if maybe you meant something else. For example, "rasberry" will still match "raspberry".

For the most part this isn't an issue. But sometimes you'll be stumped why nothing shows up for a certain search and you were just off by a letter or two. Now that shouldn't be an issue. It's not magic, but it hopefully fixes little mistakes for you, which is kind of what you come to expect with searching on the internet these days!

Final Thoughts

We were a bit hesitant with switching to the new search method a year ago, and it left a few things to be desired initially. But now we're very happy with the results and how powerful and fast it is, and it should make our nutrition facts generator even better.

Have your own experience or comments on the search results? Let us know in the comments below, chat, or email us.

Learn something? Check out similar posts:

Recipal Features Engineering
Learn why hundreds of food entrepreneurs already use ReciPal to manage their recipes, costs, and create nutrition labels.

Just want lessons on growing a food business?

We're learning a lot and so will you.

Your information will not be shared.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Sevice apply.

comments powered by Disqus

Want To Grow Your Food Business?

Food folks just like you have had great experiences making nutrition fact labels, costing recipes, and managing inventory with our web app. It was designed by food entrepreneurs for food entrepreneurs, so it makes sense.

Search the Blog

Popular Posts


Private Labeling FoodContestsFundraisingPressFood PackagingPricing Your ProductFood MarketingLabeling Rules And GuidelinesDatabase Nutrition AnalysisFood Label NewsCopackingRecipal FeaturesEngineeringGetting Started With Food LabelsEntrepreneur InterviewsInventory ManagementResourcesGetting Into RetailGuest PostsTips And Tricks