1
0
mirror of https://github.com/ilri/dspace-statistics-api.git synced 2024-11-15 02:47:07 +01:00
dspace-statistics-api/solr.py
Alan Orth b0d81a543c
Refactor Solr components
This makes it so we only need to define and connect once and then we
can re-use the connection everywhere else.
2018-09-23 13:24:30 +03:00

10 lines
186 B
Python

from config import SOLR_SERVER
from SolrClient import SolrClient
def solr_connection():
connection = SolrClient(SOLR_SERVER)
return connection
# vim: set sw=4 ts=4 expandtab: