#788: 'FacetCollector' object has no attribute 'offset'
---------------------+--------------------
Reporter: olemis | Owner:
Type: defect | Status: new
Priority: major | Version: 0.8.0dev
Resolution: |
---------------------+--------------------
==== How to Reproduce ====
While doing a GET operation on `/bhsearch`, Trac issued an internal error.
Searching for everything I tried (e.g. search term in args below) leads to
this error .
Request parameters:
{{{
{'q': u'punch card'}
}}}
User agent: `Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.10.289
Version/12.02`
==== System Information ====
''System information not available''
==== Enabled Plugins ====
''Plugin information not available''
==== Python Traceback ====
{{{
Traceback (most recent call last):
File "/path/to/bloodhound/trac/trac/web/main.py", line 477, in
_dispatch_request
dispatcher.dispatch(req)
File "/path/to/bloodhound/trac/trac/web/main.py", line 214, in dispatch
resp = chosen_handler.process_request(req)
File "/path/to/bloodhound/bloodhound_search/bhsearch/web_ui.py", line
350, in process_request
context=request_context,
File "/path/to/bloodhound/bloodhound_search/bhsearch/api.py", line 322,
in query
query_result = self.backend.query(**query_parameters)
File "/path/to/bloodhound/bloodhound_search/bhsearch/whoosh_backend.py",
line 243, in query
raw_page = searcher.search_page(**query_parameters)
File "/path/to/venv/lib/python2.7/site-packages/whoosh/searching.py",
line 561, in search_page
results = self.search(query, limit=pagenum * pagelen, **kwargs)
File "/path/to/venv/lib/python2.7/site-packages/whoosh/searching.py",
line 762, in search
self.search_with_collector(q, c)
File "/path/to/venv/lib/python2.7/site-packages/whoosh/searching.py",
line 804, in search_with_collector
collector.collect_matches()
File "/path/to/venv/lib/python2.7/site-packages/whoosh/collectors.py",
line 598, in collect_matches
global_docnum = child.offset + sub_docnum
AttributeError: 'FacetCollector' object has no attribute 'offset'
}}}
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/788>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker