datamade / chi-councilmatic

:eyes: keep tabs on Chicago city council
https://chicago.councilmatic.org/
MIT License
21 stars 16 forks source link

"transfer tax" search does not return this bill #388

Closed fgregg closed 7 months ago

fgregg commented 10 months ago

R2023-0004166

derekeder commented 10 months ago

confirming this: https://chicago.councilmatic.org/search/?q=%22transfer+tax%22&sort_by=date&order_by=desc

however searching for the ordinance number does work, so it is in the index: https://chicago.councilmatic.org/search/?sort_by=date&order_by=desc&q=R2023-0004166

seems like something to do with how the search is configured

fgregg commented 10 months ago

“garrit” also does not return https://chicago.councilmatic.org/legislation/or2023-0002846/

derekeder commented 9 months ago

we found a discrepancy between the search index and councilmatic's search results:

searching for "increase in Chicago real estate transfer tax rates" yields no results: https://chicago.councilmatic.org/search/?q=%22increase+in+Chicago+real+estate+transfer+tax+rates%22

but in the search index interface, we get the result we want:

Screenshot 2023-11-10 at 3 59 46 PM

There is either a difference in what we are sending to elasticsearch or there may be some issue with matching up the bill objects to the results objects.

derekeder commented 7 months ago

here's the log we were able to get when searching for "transfer tax" locally:

debug.log

documentation for elasticsearch logging for v7 https://elasticsearch-py.readthedocs.io/en/v7.17.10/index.html?highlight=logging#logging

fgregg commented 7 months ago

re-indexed and now all these bills are showing up again.

derekeder commented 7 months ago

excellent