I'm using whoosh backend with plugin_haystack in my application.
But the search function is working only if there is an insert or update db statement in that function.
For instance :
def temp():
db.my_table.insert(my_row1="temporary data to test the search")
rows = db(index.search(my_row1="data to search"))
return dict(rows=rows)
this returns the newly inserted row as the search result. But after that if I do this, it doesn't return any matching result,
def temp2():
rows = db(index.search(my_row1="data to search"))
return dict(rows=rows)
what could be the mistake here?