healthyregions / SDOHPlace

Landing page and data discovery application for SDOH Place Project.
https://sdohplace.org
GNU General Public License v3.0
1 stars 1 forks source link

Review `handleSearch` to adjust suggestionBuilder once suggestion endpoint is fixed #265

Closed pengyin-shan closed 2 months ago

pengyin-shan commented 3 months ago

HandleSearch should be updated to accommodate the new approach, and the suggestionQueryBuilder may need to be removed after HandleSearch is widely adopted for conducting searches exclusively. Review this method after the suggestion endpoint is fixed.

pengyin-shan commented 2 months ago

Hi @mradamcox, no rush, but do you have any idea why our suggestion endpoint isn't working? For example, https://solr.sdohplace.org/solr/blacklight-core-dev/suggest?q=education isn’t returning any suggestions. I’m wondering if a re-ingestion might help 🤔

mradamcox commented 2 months ago

You are right, it needed to be fully reindexed (all records deleted and then recreated from our JSON metadata records). I assume it stopped working because I had tried some alterations to the schema for the suggestion field, but didn't realized I had to fully reindex to have them be implemented. Thanks for the suggestion!

pengyin-shan commented 2 months ago

Great, thank you! Once the suggest endpoint is working again, I will refine the updated search methods and fix the autocomplete feature for the search box.

mradamcox commented 2 months ago

Ok all set, it is now working on both the Solr cores.

pengyin-shan commented 2 months ago

awesome, thanks!