osome-iu / hoaxy-backend

Backend component for Hoaxy, a tool to visualize the spread of claims and fact checking
http://hoaxy.iuni.iu.edu/
GNU General Public License v3.0
139 stars 44 forks source link

Consider new search fields #23

Closed glciampaglia closed 1 year ago

glciampaglia commented 5 years ago

As part of the migration to Python 3 #20, we had to make some changes to the indexing class of Hoaxy. It would be nice to see if there are additional fields that would be worth indexing. For example, we might want to search only by domain (e.g. breitbart, infowars), or by language (e.g. Portoguese, Spanish).

filmenczer commented 5 years ago

Language would be difficult, maybe require Solr -- deferred until a future time. But we could index by domain and/or domain type (tag). This would require three steps:

  1. Re-index existing collection via Lucene (just for our local version)
  2. Modify the cron job that indexes new incoming document
  3. Modify the API so that it accepts the new parameters