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
Original issue reported on code.google.com by
google%b...@gtempaccount.com
on 9 Dec 2008 at 2:13