searcher.search(qry) getting stuck

12 views
Skip to first unread message

prasenjit mukherjee

unread,
Apr 7, 2013, 6:23:18 AM4/7/13
to who...@googlegroups.com
I am using Whoosh in a singlethreaded python programe with the following sequence : 

0. writer = create_in(indexdir, schema).writer()
1.  for line in sys.stdin:
        do some processing and writer.add_document()
2. writer.commit()
3. searcher = open_dir(indexdir) 
4. for item in some_list:
         print "before"
         seacher.search(query)
         print "after"

It is getting stuck at searcher.search() every time exactly at the same query.  I can see "before" but cant see "after" print statements. 
Any help is greatly appreciated. 

Thanks,
Prasenjit 
Reply all
Reply to author
Forward
0 new messages