Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CompositeIndexer not returning tags #123

Closed
GoogleCodeExporter opened this issue Mar 16, 2015 · 1 comment
Closed

CompositeIndexer not returning tags #123

GoogleCodeExporter opened this issue Mar 16, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

When using the CompositeIndexer tags in the Hit object are not populated.

I've found a way to resolve this by changing lines 233 and 234 of resultset.py 
from:

tags = dict([(tag.prefix, tag.extract(doc))\
               for tag in self._indexer.tags])

to:

tags = dict([(tag.prefix, tag.extract(doc))\
               for tag in model.indexer.tags])

Original issue reported on code.google.com by michael....@gmail.com on 17 Jan 2011 at 2:35

@GoogleCodeExporter
Copy link
Author

We can't use 'model.indexer' here because 1) 'indexer' is an arbitrary name, 
and 2) there could be more then single one indexer for the same model.

In r381 there's an initial fix for this issue. It might be changed in favor of 
subclassing ResultSet in future.

Original comment by esizi...@gmail.com on 21 Oct 2011 at 7:51

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant