cga-harvard / worldmap

WorldMap GeoNode Project
GNU General Public License v3.0
13 stars 7 forks source link

can not search the layer #147

Open lannio opened 6 years ago

lannio commented 6 years ago

There are some layers in hhypermap, but I can not search them in worldmap. (worldmap:172.20.10.12,hhypermap:172.20.10.14) image image image

capooti commented 6 years ago

I see Solr is running but nothing was added to its database. This could be caused by Celery/RabbitMQ not properly configured. You need to configure them properly, otherwise tasks which synchronize PostgreSQL to Solr will not run and your search database will be empty. You can use Hypermap without the task queue (but this is not recommended for production), by setting the REGISTRY_SKIP_CELERY to True and restart Django.

lannio commented 6 years ago

Thank you for your reply. Now I've added some online layers to HHyperMap and can see them in worldmap. But I found that I can search through the source, but I can't search through the title(keyworld). image image image image

capooti commented 6 years ago

Can you try to see what happens if you run this query in Solr:

http://youserver/solr/hypermap/select?indent=on&q=title:sea&wt=json

It should return all the documents which contains "sea" in the title field.

lannio commented 6 years ago

This is the result in http://172.20.10.14:8983/solr/hypermap/select?indent=on&q=title:sea&wt=json , but it is empty in the searth table. image

capooti commented 6 years ago

This is weird. It would be useful to debug the request being sent to Solr using Firefox or Chrome developer toolbar. Can you do it?