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?

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to