Sign in | Sign up

v2.0 Search

Tagged:

Currently contains 3 posts

Avatar

February 20, 2015 17:54

NBT

With the new “v2/search”, is there a way to get a result containing both search_type=grocery AND search_type=usda? Or maybe a way to exclude search_type=restaurant? Thanks. :)

February 20, 2015 19:31

Anonymous User

Hey, the search_type parameter is meant as a predefined filter. However, to get a more advanced filtering capability you can send a payload to the v2 search that includes a filter object.
Check out this example, https://gist.github.com/sourcec0de/4c83722ded432c1d161a

Avatar

February 20, 2015 19:43

NBT

Sweet! I knew you guys had a way. Thanks.

Reply to thread