FDA / openfda

openFDA is an FDA project to provide open APIs, raw data downloads, documentation and examples, and a developer community for an important collection of FDA public datasets.
https://open.fda.gov
Creative Commons Zero v1.0 Universal
569 stars 131 forks source link

Is there a way to perform Wildcard queries? #143

Closed justindra closed 4 years ago

justindra commented 4 years ago

I'm using the NDC endpoints and just trying to see if I can use a wildcard query? It looks like it is available in ElasticSearch, but when I pass it along it says that it isn't supported?

For example,

https://api.fda.gov/drug/ndc.json?search=panad*&limit=25

Will return

Search not supported: panad*
dkrylovsb commented 4 years ago

Unfortunately, wildcard queries are not supported in openFDA API at this time.