dreamproit / billtitleindex

Create an index of U.S. bill titles
Other
0 stars 3 forks source link

API Response Schema #3

Open ninjaguru-git opened 2 years ago

ninjaguru-git commented 2 years ago

API Response Schemas that you mentioned in README.adoc has some unclear things. So, I attached some implemented API schema samples, and going to confirm API Response Schema correctly.

aih commented 2 years ago

@topguru91-git, yes, these are perfect! The key is to see that Santa Ynez Band of Chumash Indians Land Affirmation Act of 2019 shows up in the 'titles' list, and Santa Ynez Band of Chumash Indians Land Affirmation Act in the titlesNoYear list.

The fuzzy endpoint is not absolutely necessary at this point. My idea is that it would be the relevance-based search result from ElasticSearch, or from Postgresql full text search. For example, if a user entered "Federal Risk and Authorization", they would get all titles that have that phrase.