pombreda / djapian

Automatically exported from code.google.com/p/djapian
Other
0 stars 0 forks source link

Allow merging Indexers for complex queries in many indexes at once #43

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Proposed API:

{{{
indexer = djapian.merge_indexers(Entry.indexer, Comment.indexer)
for row in indexer.query("foobar"):
  if row.model == Entry:
    print "Found entry: %s" % row.instance
  else:
    print "Found comment: %s" % row.instance
}}}

Original issue reported on code.google.com by daevaorn on 18 Feb 2009 at 6:59

GoogleCodeExporter commented 9 years ago
Added in #186

Original comment by daevaorn on 22 Feb 2009 at 11:22