https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31652
--- Comment #34 from David Nind <da...@davidnind.com> --- Hi Thomas. I can confirm the bug now applies! I had a go at testing (not that this is required, as it has already passed QA). Things I noted: - database update required after applying the patch - also needed to reset the Elasticsearch mappings - I didn't get any search results in the OPAC - wasn't sure how to install the HKS3GeoSearch plugin Here are my testing notes (using KTD): 1. Start up KTD with Elasticsearch: ktd --es7 up 2. Apply the patch 3. Update the database: updatedatabase 4. Restart everything 5. Edit the books framework and make 034$s and 034$t visible in the editor 6. Add example coordinates for a couple of records (I added lat=48.216 and lon=16.395 to records 262 and 126) 7. Reset the Elasticsearch mappings (Administration > Catalog > Search engine configuration (Elasticsearch) > Reset mappings) 8. Rebuild the search index: koha-elasticsearch --rebuild -d -b -a kohadev 9. Check if indexing working: curl http://es:9200/koha_kohadev_biblios/_doc/123?pretty | grep -A5 geolocation - The result I got: curl http://es:9200/koha_kohadev_biblios/_doc/262?pretty | grep -A5 geolocation % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1078 "geolocation" : [ 0 0 0 --:--:-- --:--:-- --:--:-- 0 3 { "lon" : "16.395", "lat" : "48.216" 1 } 0 ], 0 10783 0 0 2164k 0 --:--:-- --:--:-- --:--:-- 2632k 10. Query Elasticsearch directly: - Result: curl -X GET "http://es:9200/koha_kohadev_biblios/_search?pretty" -H 'Content-Type: application/json' -d '{"query": {"bool":{"must":{"match_all":{}},"filter":{"geo_distance":{"distance":100000,"geolocation":{"lat":48.2,"lon":16.4}}}}}}' { .... A lot of information returned - basically the details for the two records that I added the coordinates to. ... } 11. OPAC query: http://127.0.0.1:8080/cgi-bin/koha/opac-search.pl?advsearch=1&idx=geolocation&q=lat:48.25+lng:18.35+distance:100km&do=Search - Puts details in the search field: lat:48.25 lng:18.35 distance:100km - Results displayed: No results found! No results found for that in catalog. 12. HKS3GeoSearch Koha Plugin: - No release available. Does this mean I have to clone the repository into the plugins folder? (I tried cloning the repository into /var/lib/koha/kohadev/plugins, but nothing appears in the list of plugins.) David -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/