Recipe - Food - Nutrition

FREEMIUM
Verified
By David | Updated 8 days ago | Food
Popularity

9.9 / 10

Latency

488ms

Service Level

100%

Health Check

N/A

Back to All Discussions

Query for muffins produces small number of results when including butter

Rapid account: Clyon
clyon
8 years ago

This query yields several results: /searchComplex?excludeIngredients=carrots&query=morning+glory+muffins

But this gives only one: /recipes/searchComplex?excludeIngredients=carrots&query=morning+glory+muffins&includeIngredients=butter

And plainly there are other recipes that might have been valid to include - by looking at the ingredient list for those that didn’t come back we can find some, e.g.: /recipes/564538/analyzedInstructions

Shouldn’t the inclusion of butter produce at least all the recipes from the first query that have butter as an ingredient?

Rapid account: Spoonacular
spoonacular Commented 8 years ago

Finally resolved, thanks again for reporting it.

Rapid account: Clyon
clyon Commented 8 years ago

Thanks! Not urgent. Just writing up issues as I come across them.

Rapid account: Spoonacular
spoonacular Commented 8 years ago

Seems like 5 results should be returned. If you use the natural language search (“morning glory muffins with butter” as query) and ignore all the other fields you get better results: https://spoonacular.com/morning+glory+muffins+with+butter

Of course, the way you queried should return the same 5 muffins, not only 3. I will look further into the issue but you can use that workaround above if you need a fix urgently.

Rapid account: Spoonacular
spoonacular Commented 8 years ago

I think your interpretation is correct, I’ll investigate.

Join in the discussion - add comment below:

Login / Signup to post new comments