Can you tell us more about your setup? Do you have one server? Multiple processes? Did you try it form the web2py shell?
On Saturday, 5 July 2014 06:28:33 UTC-5, lokesh wrote: > > 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.