codeforamerica / naics-api

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

Search results should include entries that contain search terms that are separated by other words #25

Open louh opened 10 years ago

louh commented 10 years ago

(10/5 EDIT: Reworded for clarity, with some more examples.)

Currently, a search like "space research" returns only results where the two words are not separated by other words. In our case, this functionality is good for returning more relevant results (e.g. NAICS code 927110 “Space Research and Technology”) that the official Census search result does not have. (This can be checked on this search form).

In comparison, the official Census search result also returns 541712, “Research and Development in the Physical, Engineering, and Life Sciences (except Biotechnology)”, because the words "space research" appear, separated by other words, in the list of index entries (aka, the list of alternate titles). We should do the same.

Another situation that might be more prevalent is if someone searches for "pizza shop." The current search returns no results. The official Census search will properly return the result of 722513 (pizza delivery shops)

cc @rclosner

robinsondotnet commented 9 years ago

Is it solved?