RE: [Whoosh] searcher.search(qry) getting stuck

16 views
Skip to first unread message

Prasenjit

unread,
Apr 7, 2013, 7:52:07 AM4/7/13
to who...@googlegroups.com
Changing the query from Or to And ( using group=AndGroup) solves the issue but my functionality does require it to be an Or query.
Any pointer is greatly appreciated.

Thanks
Prasenjit

From: prasenjit mukherjee
Sent: ‎07-‎04-‎2013 15:53
To: who...@googlegroups.com
Subject: [Whoosh] searcher.search(qry) getting stuck

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 

--
You received this message because you are subscribed to a topic in the Google Groups "Whoosh" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/whoosh/zHi-nGDgJRY/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to whoosh+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages