[annotator-dev] problems with latest version of annotator / annotator-store

Kristof Csillag csillag at hypothes.is
Thu Jul 11 13:59:22 UTC 2013


Hi,

I am working with latest annotator and annotator-store with OKFN.
While trying to view dev.html (either locally, or served up on the :4000
port), I can not load any annotations, and get this on the console, from
the store:


-------------------------------
Traceback (most recent call last):
  File
"/mnt/user_data/home/csillag/upstream-testing/annotator-store/pyenv/lib/python2.7/site-packages/flask/app.py",
line 1701, in __call__
    return self.wsgi_app(environ, start_response)
  File
"/mnt/user_data/home/csillag/upstream-testing/annotator-store/pyenv/lib/python2.7/site-packages/flask/app.py",
line 1689, in wsgi_app
    response = self.make_response(self.handle_exception(e))
  File
"/mnt/user_data/home/csillag/upstream-testing/annotator-store/pyenv/lib/python2.7/site-packages/flask/app.py",
line 1687, in wsgi_app
    response = self.full_dispatch_request()
  File
"/mnt/user_data/home/csillag/upstream-testing/annotator-store/pyenv/lib/python2.7/site-packages/flask/app.py",
line 1360, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File
"/mnt/user_data/home/csillag/upstream-testing/annotator-store/pyenv/lib/python2.7/site-packages/flask/app.py",
line 1358, in full_dispatch_request
    rv = self.dispatch_request()
  File
"/mnt/user_data/home/csillag/upstream-testing/annotator-store/pyenv/lib/python2.7/site-packages/flask/app.py",
line 1344, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File
"/mnt/user_data/home/csillag/upstream-testing/annotator-store/annotator/store.py",
line 246, in search_annotations
    results = Annotation.search(**kwargs)
  File
"/mnt/user_data/home/csillag/upstream-testing/annotator-store/annotator/elasticsearch.py",
line 126, in search
    q = cls._build_query(**kwargs)
  File
"/mnt/user_data/home/csillag/upstream-testing/annotator-store/annotator/annotation.py",
line 81, in _build_query
    term_filter = q['query']['filtered']['query']['filtered']['filter']
KeyError: 'filtered'
-----------------------------------------

What am I doing wrong?
Is this expected?

   Kristof





More information about the annotator-dev mailing list