daevaorn / djapian

High level Xapian integration for Django
Other
6 stars 3 forks source link

Trigger not working as expected #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. #models.py:
class Product(models.Model):
    name = models.CharField(max_length=20)
    active = models.BooleanField(default=True)

In Indexer instance, set trigger on "active" boolean (e.g., trigger=lambda
obj: obj.active)

2. Run "python manage.py index --rebuild" to build db
3. As expected, those products marked active=0 are not indexed.
4. Also as expected, change one of those inactive products to active and it
will be indexed.
5. UNEXPECTED: Change the same product back to active=0 and it still shows
up in results.

Even "--rebuild" doesn't change anything (separate issue?). Only deleting
the contents of the db directory and running --rebuild returns expected
results.

What version of the product are you using? On what operating system?

r133
OS X 10.4.11

Original issue reported on code.google.com by google%b...@gtempaccount.com on 9 Dec 2008 at 2:13

GoogleCodeExporter commented 9 years ago

Original comment by daevaorn on 15 Dec 2008 at 5:33

GoogleCodeExporter commented 9 years ago

Original comment by daevaorn on 14 Feb 2009 at 10:54

GoogleCodeExporter commented 9 years ago
Fixed with release 2.0

Original comment by daevaorn on 17 Feb 2009 at 3:15