You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bloodhound.apache.org by Apache Bloodhound <de...@bloodhound.apache.org> on 2014/03/08 17:05:57 UTC

[Apache Bloodhound] #788: 'FacetCollector' object has no attribute 'offset'

#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

Re: [Apache Bloodhound] #788: 'FacetCollector' object has no attribute 'offset'

Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#788: 'FacetCollector' object has no attribute 'offset'
----------------------+------------------------------------
  Reporter:  olemis   |      Owner:  olemis
      Type:  defect   |     Status:  assigned
  Priority:  blocker  |  Milestone:  Release 8
 Component:  search   |    Version:  0.8.0dev
Resolution:           |   Keywords:  whoosh collector facet
----------------------+------------------------------------
Changes (by rjollos):

 * owner:  nobody => olemis
 * status:  new => assigned


-- 
Ticket URL: <https://issues.apache.org/bloodhound/ticket/788#comment:13>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker

Re: [Apache Bloodhound] #788: 'FacetCollector' object has no attribute 'offset'

Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#788: 'FacetCollector' object has no attribute 'offset'
----------------------+------------------------------------
  Reporter:  olemis   |      Owner:  nobody
      Type:  defect   |     Status:  new
  Priority:  blocker  |  Milestone:  Release 8
 Component:  search   |    Version:  0.8.0dev
Resolution:           |   Keywords:  whoosh collector facet
----------------------+------------------------------------

Old description:

> ==== 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'
> }}}

New description:

 ==== 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 ====
 {{{#!pycon

 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'
 }}}

--

Comment (by olemis):

 Highlighting traceback in ticket description .

-- 
Ticket URL: <https://issues.apache.org/bloodhound/ticket/788#comment:2>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker

Re: [Apache Bloodhound] #788: 'FacetCollector' object has no attribute 'offset'

Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#788: 'FacetCollector' object has no attribute 'offset'
----------------------+------------------------------------
  Reporter:  olemis   |      Owner:  nobody
      Type:  defect   |     Status:  new
  Priority:  blocker  |  Milestone:  Release 8
 Component:  search   |    Version:  0.8.0dev
Resolution:           |   Keywords:  whoosh collector facet
----------------------+------------------------------------

Comment (by olemis):

 That component is not shown in the list . This is what I get when I try to
 import that module

 {{{#!sh

 $ python
 Python 2.7.3 (default, Aug  1 2012, 05:14:39)
 [GCC 4.6.3] on linux2
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import bhsearch.query_parser
 >>>

 }}}

-- 
Ticket URL: <https://issues.apache.org/bloodhound/ticket/788#comment:10>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker

Re: [Apache Bloodhound] #788: 'FacetCollector' object has no attribute 'offset'

Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#788: 'FacetCollector' object has no attribute 'offset'
-------------------------+------------------------------------
  Reporter:  olemis      |      Owner:  rjollos
      Type:  defect      |     Status:  closed
  Priority:  blocker     |  Milestone:
 Component:  search      |    Version:  0.8.0dev
Resolution:  worksforme  |   Keywords:  whoosh collector facet
-------------------------+------------------------------------
Changes (by rjollos):

 * status:  review => closed
 * resolution:   => worksforme
 * milestone:  Release 8 =>


Comment:

 I've not been able to reproduce the reported issues when upgrading a
 production installation. Here are the steps I followe:

  1. Created a new install following the instructions in BloodhoundInstall,
 but running just TracStandalone ([attachment:pip_install_output]). The
 source code for the install was the 0.7 release package.
  1. Ran `pip install -r requirements.txt` from the latest trunk
 ([attachment:pip_install_output_2]) to upgrade the install.
  1. Upgraded the environment.

 No problems with searching from `/bhsearch`.
 {{{#!python
 >>> import whoosh
 >>> whoosh.__version__
 (2, 6, 0)
 >>> from pkg_resources import get_distribution
 >>> get_distribution('BloodhoundSearchPlugin').version
 '0.8.0dev'
 }}}

 If you can provide some steps to reproduce in a production environment I
 will investigate further.

-- 
Ticket URL: <https://issues.apache.org/bloodhound/ticket/788#comment:16>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker

Re: [Apache Bloodhound] #788: 'FacetCollector' object has no attribute 'offset'

Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#788: 'FacetCollector' object has no attribute 'offset'
----------------------+------------------------------------
  Reporter:  olemis   |      Owner:  nobody
      Type:  defect   |     Status:  new
  Priority:  blocker  |  Milestone:  Release 8
 Component:  search   |    Version:  0.8.0dev
Resolution:           |   Keywords:  whoosh collector facet
----------------------+------------------------------------
Changes (by olemis):

 * keywords:   => whoosh collector facet
 * priority:  major => blocker
 * component:   => search
 * owner:   => nobody
 * milestone:   => Release 8


Comment:

 I'm stating that this should be a blocker for [milestone:"Release 8"]
 considering the fact that no search is possible , cmiiw .

-- 
Ticket URL: <https://issues.apache.org/bloodhound/ticket/788#comment:1>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker

Re: [Apache Bloodhound] #788: 'FacetCollector' object has no attribute 'offset'

Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#788: 'FacetCollector' object has no attribute 'offset'
----------------------+------------------------------------
  Reporter:  olemis   |      Owner:  nobody
      Type:  defect   |     Status:  new
  Priority:  blocker  |  Milestone:  Release 8
 Component:  search   |    Version:  0.8.0dev
Resolution:           |   Keywords:  whoosh collector facet
----------------------+------------------------------------

Comment (by olemis):

 Replying to [comment:4 olemis]:
 > Replying to [comment:3 rjollos]:
 > > In #741 (r1566160 and r1568745), !BloodhoundSearchPlugin was upgraded
 to use Whoosh >= 2.5.1. It appears you are still using an earlier version
 of Whoosh, likely 2.4.1 since that was the previous installation
 requirement.
 > >
 > > The requirement `whoosh>=2.5.1` is enforced in `setup.py`.
 >
 > FWIW , if this is the case then the Bloodhound search should detect
 version mismatch of installed whoosh library to force an upgrade , isn't
 it ?
 >
 [...]

 ... or at least display a warning message rather than an unfriendly error
 message .

-- 
Ticket URL: <https://issues.apache.org/bloodhound/ticket/788#comment:5>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker

Re: [Apache Bloodhound] #788: 'FacetCollector' object has no attribute 'offset'

Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#788: 'FacetCollector' object has no attribute 'offset'
----------------------+------------------------------------
  Reporter:  olemis   |      Owner:  nobody
      Type:  defect   |     Status:  new
  Priority:  blocker  |  Milestone:  Release 8
 Component:  search   |    Version:  0.8.0dev
Resolution:           |   Keywords:  whoosh collector facet
----------------------+------------------------------------

Comment (by rjollos):

 In #741 (r1566160 and r1568745), !BloodhoundSearchPlugin was upgraded to
 use Whoosh >= 2.5.1. It appears you are still using an earlier version of
 Whoosh, likely 2.4.1 since that was the previous installation requirement.

 The requirement `whoosh>=2.5.1` is enforced in `setup.py`. What steps did
 you perform to upgrade your installation? It's possible that our pip
 requirements or `setup.py` specification are not sufficient to guarantee
 an error or installation of the latest Whoosh depending on the steps that
 are followed.

-- 
Ticket URL: <https://issues.apache.org/bloodhound/ticket/788#comment:3>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker

Re: [Apache Bloodhound] #788: 'FacetCollector' object has no attribute 'offset'

Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#788: 'FacetCollector' object has no attribute 'offset'
----------------------+------------------------------------
  Reporter:  olemis   |      Owner:  nobody
      Type:  defect   |     Status:  new
  Priority:  blocker  |  Milestone:  Release 8
 Component:  search   |    Version:  0.8.0dev
Resolution:           |   Keywords:  whoosh collector facet
----------------------+------------------------------------

Comment (by rjollos):

 Replying to [comment:4 olemis]:
 > FWIW , if this is the case then the Bloodhound search should detect
 version mismatch of installed whoosh library to force an upgrade , isn't
 it ?

 I believe it will, or at least should, if you execute `python setup.py
 install`, or run `easy_install`, which is the typical use-case for a user
 upgrading their installation. If you've discovered a flaw in that logic
 please let us know. If you are running in development mode and just
 refreshing your source by pulling in the latest changes, I don't believe
 there are any checks in place. It would be helpful to know which "mode"
 you were running in when you encountered the error.

-- 
Ticket URL: <https://issues.apache.org/bloodhound/ticket/788#comment:6>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker

Re: [Apache Bloodhound] #788: 'FacetCollector' object has no attribute 'offset'

Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#788: 'FacetCollector' object has no attribute 'offset'
----------------------+------------------------------------
  Reporter:  olemis   |      Owner:  nobody
      Type:  defect   |     Status:  new
  Priority:  blocker  |  Milestone:  Release 8
 Component:  search   |    Version:  0.8.0dev
Resolution:           |   Keywords:  whoosh collector facet
----------------------+------------------------------------

Comment (by rjollos):

 Assuming `bhsearch.query_parser.DefaultQueryParser` hasn't been explicitly
 disabled, it must be failing to load. What do you see in the logs?

-- 
Ticket URL: <https://issues.apache.org/bloodhound/ticket/788#comment:9>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker

Re: [Apache Bloodhound] #788: 'FacetCollector' object has no attribute 'offset'

Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#788: 'FacetCollector' object has no attribute 'offset'
----------------------+------------------------------------
  Reporter:  olemis   |      Owner:  nobody
      Type:  defect   |     Status:  new
  Priority:  blocker  |  Milestone:  Release 8
 Component:  search   |    Version:  0.8.0dev
Resolution:           |   Keywords:  whoosh collector facet
----------------------+------------------------------------

Comment (by olemis):

 Replying to [comment:3 rjollos]:
 > In #741 (r1566160 and r1568745), !BloodhoundSearchPlugin was upgraded to
 use Whoosh >= 2.5.1. It appears you are still using an earlier version of
 Whoosh, likely 2.4.1 since that was the previous installation requirement.
 >
 > The requirement `whoosh>=2.5.1` is enforced in `setup.py`.

 FWIW , if this is the case then the Bloodhound search should detect
 version mismatch of installed whoosh library to force an upgrade , isn't
 it ?

 [...]
 >
 > However, if you are running in development mode and just pulled down the
 latest source and restarted `tracd`, then the error is not unexpected and
 you can fix the issue by either manually installing the newer version of
 Whoosh or upgrading your dependencies using `pip`.

 ok , thanks

-- 
Ticket URL: <https://issues.apache.org/bloodhound/ticket/788#comment:4>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker

Re: [Apache Bloodhound] #788: 'FacetCollector' object has no attribute 'offset'

Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#788: 'FacetCollector' object has no attribute 'offset'
----------------------+------------------------------------
  Reporter:  olemis   |      Owner:  rjollos
      Type:  defect   |     Status:  review
  Priority:  blocker  |  Milestone:  Release 8
 Component:  search   |    Version:  0.8.0dev
Resolution:           |   Keywords:  whoosh collector facet
----------------------+------------------------------------
Changes (by olemis):

 * status:  assigned => review
 * owner:  olemis => rjollos


Comment:

 Please review attached patch . Details

 {{{#!sh

 $ hg qapplied
 t788/t788_r1579492_whoosh_version_warning.diff

 $ hg log -r qparent --template="{svnrev}\n"
 1579492

 }}}

-- 
Ticket URL: <https://issues.apache.org/bloodhound/ticket/788#comment:14>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker

Re: [Apache Bloodhound] #788: 'FacetCollector' object has no attribute 'offset'

Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#788: 'FacetCollector' object has no attribute 'offset'
----------------------+------------------------------------
  Reporter:  olemis   |      Owner:  rjollos
      Type:  defect   |     Status:  review
  Priority:  blocker  |  Milestone:  Release 8
 Component:  search   |    Version:  0.8.0dev
Resolution:           |   Keywords:  whoosh collector facet
----------------------+------------------------------------

Comment (by rjollos):

 You still haven't answered the question about which installation steps you
 followed. The version requirement in `setup.py` should be sufficient to
 enforce the package version in a production installation. It may not
 enforce the requirement when you install in development mode and update
 the source code. However, I don't think it's going to be worthwhile to add
 additional code simply to handle that case.

 So in short, I will consider installing the patch if you can describe a
 sequence of steps that would lead to the new Whoosh requirement not being
 installation in a //production installation//.  Otherwise, we certainly
 shouldn't be hard-coding the version in the source code, adding another
 point that must be maintained when the Whoosh requirement changes, and
 even if the hard-code version was removed I question the value of the
 patch.

-- 
Ticket URL: <https://issues.apache.org/bloodhound/ticket/788#comment:15>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker

Re: [Apache Bloodhound] #788: 'FacetCollector' object has no attribute 'offset'

Posted by Olemis Lang <ol...@gmail.com>.
On 3/17/14, Ryan Ollos <ry...@wandisco.com> wrote:
> On Wed, Mar 12, 2014 at 2:47 PM, Apache Bloodhound <
> dev@bloodhound.apache.org> wrote:
>
[...]
>>  Nevertheless the original issue still has to be
>> addressed
>>  , IMO preferably before BH=0.8 release to highlight misconfiguration on
>>  upgraded environments .
>>
>
> Do you intend to propose a fix?
>

Yes , I'll submit something soon . I've been entangled doing other tasks .

-- 
Regards,

Olemis - @olemislc

Re: [Apache Bloodhound] #788: 'FacetCollector' object has no attribute 'offset'

Posted by Ryan Ollos <ry...@wandisco.com>.
On Wed, Mar 12, 2014 at 2:47 PM, Apache Bloodhound <
dev@bloodhound.apache.org> wrote:

> #788: 'FacetCollector' object has no attribute 'offset'
> ----------------------+------------------------------------
>   Reporter:  olemis   |      Owner:  nobody
>       Type:  defect   |     Status:  new
>   Priority:  blocker  |  Milestone:  Release 8
>  Component:  search   |    Version:  0.8.0dev
> Resolution:           |   Keywords:  whoosh collector facet
> ----------------------+------------------------------------
>
> Comment (by olemis):
>
>  Package version meta-data was inconsistent I fixed that and everything is
>  back to normal . Nevertheless the original issue still has to be addressed
>  , IMO preferably before BH=0.8 release to highlight misconfiguration on
>  upgraded environments .
>

Do you intend to propose a fix?

Re: [Apache Bloodhound] #788: 'FacetCollector' object has no attribute 'offset'

Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#788: 'FacetCollector' object has no attribute 'offset'
----------------------+------------------------------------
  Reporter:  olemis   |      Owner:  nobody
      Type:  defect   |     Status:  new
  Priority:  blocker  |  Milestone:  Release 8
 Component:  search   |    Version:  0.8.0dev
Resolution:           |   Keywords:  whoosh collector facet
----------------------+------------------------------------

Comment (by olemis):

 Package version meta-data was inconsistent I fixed that and everything is
 back to normal . Nevertheless the original issue still has to be addressed
 , IMO preferably before BH=0.8 release to highlight misconfiguration on
 upgraded environments .

-- 
Ticket URL: <https://issues.apache.org/bloodhound/ticket/788#comment:12>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker

Re: [Apache Bloodhound] #788: 'FacetCollector' object has no attribute 'offset'

Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#788: 'FacetCollector' object has no attribute 'offset'
----------------------+------------------------------------
  Reporter:  olemis   |      Owner:  nobody
      Type:  defect   |     Status:  new
  Priority:  blocker  |  Milestone:  Release 8
 Component:  search   |    Version:  0.8.0dev
Resolution:           |   Keywords:  whoosh collector facet
----------------------+------------------------------------

Comment (by olemis):

 Initially develop mode , later confirmed using install .

-- 
Ticket URL: <https://issues.apache.org/bloodhound/ticket/788#comment:7>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker

Re: [Apache Bloodhound] #788: 'FacetCollector' object has no attribute 'offset'

Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#788: 'FacetCollector' object has no attribute 'offset'
----------------------+------------------------------------
  Reporter:  olemis   |      Owner:  nobody
      Type:  defect   |     Status:  new
  Priority:  blocker  |  Milestone:  Release 8
 Component:  search   |    Version:  0.8.0dev
Resolution:           |   Keywords:  whoosh collector facet
----------------------+------------------------------------

Comment (by olemis):

 After upgrading whoosh , now I get another issue

 ==== How to Reproduce ====

 While doing a GET operation on `/bhsearch`, Trac issued an internal error.

 context is the same as description ...

 Request parameters:
 {{{#!py
 {'q': u'jquery ui'}
 }}}

 User agent: `Opera/9.80 (X11; Linux x86_64) Presto/2.12.388 Version/12.16`

 ==== System Information ====
 || '''`Trac`''' || `1.0.1` [[br]] `` ||
 || '''`Babel`''' || `0.9.6` ||
 || '''`Bloodhound Trac`''' || `1.0.1` ||
 || '''`Genshi`''' || `0.7 (with speedups)` ||
 || '''`Mercurial`''' || `2.6.2` ||
 || '''`mod_wsgi`''' || `3.3 (WSGIProcessGroup bloodhound_net
 WSGIApplicationGroup %{GLOBAL})` ||
 || '''`psycopg2`''' || `2.5` ||
 || '''`Pygments`''' || `1.6` ||
 || '''`Python`''' || `2.7.3 (default, Aug  1 2012, 05:25:23) ` [[br]]
 `[GCC 4.6.3]` ||
 || '''`pytz`''' || `2013b` ||
 || '''`RPC`''' || `1.1.2` ||
 || '''`setuptools`''' || `0.6` ||
 || '''`jQuery`''' || `1.7.2` ||

 ==== Enabled Plugins ====
 || '''`BloodhoundDashboardPlugin`''' || `0.8.0dev` ||
 || '''`BloodhoundLabs`''' || `0.1.0` ||
 || '''`BloodhoundMultiProduct`''' || `0.8.0dev` ||
 || '''`BloodhoundRelationsPlugin`''' || `0.8.0dev` ||
 || '''`BloodhoundRPC`''' || `1.1.2` ||
 || '''`BloodhoundSearchPlugin`''' || `0.8.0dev` ||
 || '''`BloodhoundTheme`''' || `0.8.0dev` ||
 || '''`TracAccountManager`''' || `0.4.3` ||
 || '''`TracGViz`''' || `1.4.2` ||
 || '''`TracIncludeMacro`''' || `3.0.0dev` ||
 || '''`TracMercurial`''' || `1.0.0.3dev` ||
 || '''`TracPermRedirect`''' || `3.0` ||
 || '''`TracThemeEngine`''' || `2.2.2dev-r13718` ||
 || '''`TracTocMacro`''' || `11.0.0.3` ||

 ==== Python Traceback ====
 {{{#!pycon
 Traceback (most recent call last):
   File "/path/to/bh/trac/trac/web/main.py", line 477, in _dispatch_request
     dispatcher.dispatch(req)
   File "/path/to/bh/trac/trac/web/main.py", line 214, in dispatch
     resp = chosen_handler.process_request(req)
   File "/path/to/bh/bloodhound_search/bhsearch/web_ui.py", line 350, in
 process_request
     context=request_context,
   File "/path/to/bh/bloodhound_search/bhsearch/api.py", line 300, in query
     parsed_query = self.parser.parse(query, context)
   File "/path/to/bh/trac/trac/config.py", line 703, in __get__
     self.section, self.name))
 AttributeError: Cannot find an implementation of the "IQueryParser"
 interface named "DefaultQueryParser".  Please update the option
 bhsearch.query_parser in trac.ini.
 }}}

-- 
Ticket URL: <https://issues.apache.org/bloodhound/ticket/788#comment:8>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker

Re: [Apache Bloodhound] #788: 'FacetCollector' object has no attribute 'offset'

Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#788: 'FacetCollector' object has no attribute 'offset'
----------------------+------------------------------------
  Reporter:  olemis   |      Owner:  nobody
      Type:  defect   |     Status:  new
  Priority:  blocker  |  Milestone:  Release 8
 Component:  search   |    Version:  0.8.0dev
Resolution:           |   Keywords:  whoosh collector facet
----------------------+------------------------------------

Comment (by rjollos):

 Replying to [comment:10 olemis]:
 > That component is not shown in the plugins list .

 It must be failing to load then. What do you see in the logs when you
 restart your web server?

-- 
Ticket URL: <https://issues.apache.org/bloodhound/ticket/788#comment:11>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker