Improving your food search results
To help you improve your search results, it helps to know the algorithm the food search engine at Heads Up Eating is using. In this article I will explain how results are found and ordered, and give you some tips on finding foods as fast as possible.
Some terms you should know: “search query” refers to your entire search query, spaces and individual words included. “Search term” refers to an individual word in the search query. So if you type “pears raw” in the name field, your search query is “pears raw”, and your search terms are “pears” and “raw”. This article applies to search queries in the name field–obviously you can narrow your search down greatly by including the brand, if possible.
Private foods are listed first, followed by USDA imported foods, followed by public foods added by Heads Up members, all color coded. For this reason, you should copy foods that you are planning on using often to your private foods. There is a link to do this when you display USDA imported foods and public foods. Once foods are added to your private foods, they are very easy to find since they are always displayed first in any search. This is huge, not only because it will be easy to find, but Heads Up Eating will also remember the last serving size you used if the food is private, often saving you time. Also if the original food is a public food, and the owner for some reason decides to delete it, you’ll still have your copy.
Within the results of each type of food (private, USDA imported, and public), the results that start with your search query are displayed first in alphabetical order, followed by results that match all of your search terms anywhere in their name field, in alphabetical order, excluding the results already found. I know that sounds complicated, but basically remember, if you know the food starts with a certain term, searching for this term will help you find it since it will show up first. If you don’t happen to know the first term in the name field, you can still probably find it, but it may be hidden a few screens in.
Obviously if you can narrow your search down by brand, you’ll want to do this. If you’re searching for a whole food out of the USDA database, this is not possible however. If your first couple guesses for a search query are turning up fruitless, you probably just want to use the Food Tree, also on the food search page. Clicking on the category nodes and finally on a label will give you a nice concise search at that level, and this is often the easiest way to find foods. Again, once you find a food you’re looking for, and you plan on using it often, definitely copy it to your private foods.
And lastly, though this may be obvious, you can restrict the search engine to only certain types of foods (private, USDA imported, and public). If you still can’t find it, it’s probably not in there, so help yourself out and the Heads Up community by adding it yourself and making it public. The more people add foods, the more valuable of a tool Heads Up Eating becomes.
Filed under Tips | Comment (1)Invite friends tool
Even though I kinda don’t want you to use it until I officially launch the site (and the link is to the base URL which is invalid at the moment), I’ve added a tool to invite your friends to Heads Up Eating. I wanted to have this tool up and running and tested before launch. Besides letting your friends know about this ridiculously awesome site, the more people join, the more public foods will be added for you to use, so everyone wins. The tool includes a pretty cool little widget to import addresses from your address books. Oh and by the way, you can access the tool at the bottom of every page.
Filed under Changes | Comment (0)Food search more powerful, smarter
I’ve improved the algorithm used for the food search feature; it should now return more relevant results first. I’ve also made a bunch of small usabily enhancements, and updated the graphical look of the site a bit. Visually I think the site is looking pretty good, definitely let me know what you guys think. I just finished reading a book on Javascript/DOM/AJAX so expect the site to become even better (behaving more like a standalone application, less like a website) over time. Oh, and I also created this blog (instead of putting the site updates directly on the login page).
Filed under Changes | Comment (0)