I can't find how solr link to postgreSQL in ckan.
I wrote solr_url = http://127.0.0.1:8983/solr
, and sqlalchemy.url = postgresql://ckan_default:123456@localhost/ckan_default
in my development.ini file, but I'm confused how does solr know that its dataset is ckan_default.
I didn't find config file for solr,src/ckan/ckan/config/solr/schema.xml
only have filed information. /var/lib/solr/data
and /etc/solr/conf/solrconfig.xml
have no dataset information either.
Thanks!
In CKAN, Solr is not directly linked to PostgreSQL. The Solr index is maintained by the CKAN code itself, see
ckan.lib.search.index
. Extensions can hook into the indexing via thebefore_index
method of theIPackageController
interface.