cga-harvard / geonode

Harvard WorldMap is a heavily modified fork of GeoNode 1.4 which has recently been migrated to GeoNode 2.10. WorldMap is being made available by Harvard's Center for Geographic Analysis to lower the barrier for scholars and others who wish to explore, visualize, edit, collaborate with, and publish geospatial information.
http://cga.harvard.edu
GNU General Public License v3.0
96 stars 29 forks source link

Document a workflow for adding datasets with long text fields #362

Closed blewis closed 6 years ago

blewis commented 6 years ago

Document a workflow between a scholar who creates a dataset using QGIS and an admin who loads the file to the CAMP system and registers it.
Assume need to support length 10,000 Chinese characters. Assuming long text fields will be searched from the map, will likely need to use full text indexing in PostGIS. Check to see Identify and edit widgets support long text.

capooti commented 6 years ago

As a first thing I am fixing the updatelayers GeoNode command which appears to be broken in 2.8.0. I have reported it here: https://github.com/GeoNode/geonode/issues/3789

capooti commented 6 years ago

I created a wiki page with possible workflows. If needed I can extend/enrich the page:

https://github.com/cga-harvard/geonode/wiki/How-to-have-vector-datasets-supporting-long-text-fields-in-GeoNode

blewis commented 6 years ago

Thanks Paolo. One thought. If one were to want to quickly search such long text and if the geonode instance contained layers which contain many records with fields containing long text, one might want to use postres full text indexing? But since postres full text search is mainly for latin chars we might want to use pgroonga https://pgroonga.github.io/ ?

capooti commented 6 years ago

I didn't know of this limit with PostgreSQL Full Text. Yes, it looks like we would need to use something like that. Or a search engine.

blewis commented 6 years ago

you mean like the Solr-based feature search we envisioned a while back? Which would be easier, simpler, more likely to be adopted by geonode community?

capooti commented 6 years ago

I don't know anything about groonga, but it looks like an alternative to Solr? So why not using Solr as we have more experience with it? Anyway, will need to read carefully the Groonga documentation to provide you with a better anwer.

blewis commented 6 years ago

I thought it used Postgres which might make it more useful for regular geonode users who do not install solr. If not you can drop it.

capooti commented 6 years ago

I think it connects and sync PostgreSQL to Groonga and use Groonga to do full text search