codeforamerica / naics-api

Basic API to return NAICS codes and information
BSD 3-Clause "New" or "Revised" License
96 stars 55 forks source link

Searches on index entries or some way of indexing synonyms #17

Open louh opened 11 years ago

louh commented 11 years ago

cc @rclosner I'd like to discuss this with you again at some point, hopefully early next week.

The official NAICS descriptions come with a list of items called "index entries", and "illustrative examples" (which aren't currently in my dataset yet) which act essentially like synonyms. For instance: http://naics-api.herokuapp.com/v0/q?year=2012&code=519120

Here's an example of illustrative examples in use: http://www.census.gov/cgi-bin/sssd/naics/naicsrch?code=541512&search=2012%20NAICS%20Search

So right now the search is just getting performed on a relatively simple dropdown selection of the titles, and to start with, we could get it to search on these fields as well.