django - Solr issues with searching -


i using apache solr quite time , started running severe issues it. i'm using haystack , django project. when manage.py shell i'm getting below:

>>> haystack.query import searchqueryset >>> emps = searchqueryset().filter(django_ct='web.employer').filter(name__icontains='mi')[:10] traceback (most recent call last):   file "<console>", line 1, in <module>   file "/usr/local/lib/python2.7/dist-packages/haystack/query.py", line 241, in __getitem__     self._fill_cache(start, bound)   file "/usr/local/lib/python2.7/dist-packages/haystack/query.py", line 140, in _fill_cache     results = self.query.get_results(**kwargs)   file "/usr/local/lib/python2.7/dist-packages/haystack/backends/__init__.py", line 469, in get_results     self.run(**kwargs)   file "/usr/local/lib/python2.7/dist-packages/haystack/backends/solr_backend.py", line 501, in run     results = self.backend.search(final_query, **search_kwargs)   file "/usr/local/lib/python2.7/dist-packages/haystack/backends/__init__.py", line 47, in wrapper     return func(obj, query_string, *args, **kwargs)   file "/usr/local/lib/python2.7/dist-packages/haystack/backends/solr_backend.py", line 202, in search     raw_results = self.conn.search(query_string, **kwargs)   file "/usr/local/lib/python2.7/dist-packages/pysolr.py", line 578, in search     response = self._select(params)   file "/usr/local/lib/python2.7/dist-packages/pysolr.py", line 308, in _select     return self._send_request('get', path)   file "/usr/local/lib/python2.7/dist-packages/pysolr.py", line 293, in _send_request     error_message = self._extract_error(resp)   file "/usr/local/lib/python2.7/dist-packages/pysolr.py", line 372, in _extract_error     reason, full_html = self._scrape_response(resp.headers, resp.content)   file "/usr/local/lib/python2.7/dist-packages/pysolr.py", line 404, in _scrape_response     p_nodes = body_node.cssselect('p') attributeerror: 'nonetype' object has no attribute 'cssselect' 

i tried reinstalling haystack, lxml, cssselect, pysolr , still i'm getting these errors. there else can try this? help!

i tried reading few other questions including this:

xml error object has no attribute 'cssselect'

seems issue pysolr. might find here.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -