Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(16) | Call(12) | Derive(0) | Import(4)
src/c/k/ckan-2.2/ckan/lib/search/index.py ckan(Download)
from paste.deploy.converters import asbool from common import SearchIndexError, make_connection from ckan.model import PackageRelationship import ckan.model as model
err = 'Could not connect to SOLR %r: %r' % (conn.url, e) log.error(err) raise SearchIndexError(err) except solr.core.SolrException, e: err = 'SOLR %r exception: %r' % (conn.url, e) log.error(err) raise SearchIndexError(err)
e.httpcode, e.reason, e.body[:1000] # limit huge responses ) raise SearchIndexError(msg) except socket.error, e: err = 'Could not connect to Solr using {0}: {1}'.format(conn.url, str(e)) log.error(err) raise SearchIndexError(err)
src/c/k/ckan-HEAD/ckan/lib/search/index.py ckan(Download)
from paste.deploy.converters import asbool from common import SearchIndexError, make_connection from ckan.model import PackageRelationship import ckan.model as model
err = 'Could not connect to SOLR %r: %r' % (conn.url, e) log.error(err) raise SearchIndexError(err) except solr.core.SolrException, e: err = 'SOLR %r exception: %r' % (conn.url, e) log.error(err) raise SearchIndexError(err)
e.httpcode, e.reason, e.body[:1000] # limit huge responses ) raise SearchIndexError(msg) except socket.error, e: err = 'Could not connect to Solr using {0}: {1}'.format(conn.url, str(e)) log.error(err) raise SearchIndexError(err)
src/c/k/ckan-2.2/ckan/lib/search/__init__.py ckan(Download)
import ckan.logic as logic from common import (SearchIndexError, SearchError, SearchQueryError, make_connection, is_available, SolrSettings) from index import PackageSearchIndex, NoopSearchIndex
src/c/k/ckan-HEAD/ckan/lib/search/__init__.py ckan(Download)
import ckan.logic as logic from common import (SearchIndexError, SearchError, SearchQueryError, make_connection, is_available, SolrSettings) from index import PackageSearchIndex, NoopSearchIndex