Closed seilagonzalez closed 2 years ago
I also I've been exploring the use of the elasticsearch for the graphh https://github.com/KnowWhereGraph/kwg-faceted-search/issues/41
You need to change the configuration so you are pulling information about stko-kwg and not stko-roy.
Yes. The configuration has changed. You can refer to query.js in my branch: https://github.com/KnowWhereGraph/kwg-faceted-search/blob/zilong/dr-app/public/js/query.js
I didn't get to this last week like I thought I would have but did take some time on Friday to learn how AngularJS does things and scan over the code.
@zilongliu-geo: I'm going to want the count queries to be based on the query that returns the individual results. Does your zilong
branch have the latest versions of those or should I be working off what's on the main
branch?
@amoeba Sorry I just saw your message. Yes, my branch has the latest version of queries to retrieve hazard records (based on their relations with selected places/place types). But I still think you can open a new branch?
No worries, @zilongliu-geo, and thanks. I'll work in my own branch for sure but wanted to make sure I was basing mine off the right work.
@amoeba is doing more operation stuff, closing this issue.
create a template query that it calculates the total result for a particular kword with some facets.
3 queries templates: one for places, one for hazards, one for people.
Look at this #29 issue for how are going to be the facets.
Let me know if you have questions. Counter should recalculate on the fly. Take a look to enslaved to see how it does this behavior.
https://enslaved.org/search/all?searchbar=&limit=20&offset=0&sort_field=label.sort&display=people
Code for enslaved can be found here: https://github.com/matrix-msu/Enslaved-Hub. Search code can be found in function folder.