On Fri, May 11, 2007 at 12:03:42PM +0800, Liang Xing wrote:
<snip class="Description + Python Example" />
> ---- import part: Search.java( one complete search procedure) ----
> clock.start();
> for (int i = 0; m_words != null && i < m_words.length; i++)
> {
> int testonly = 0;
> Query q = qp.parse(m_words[i]);
> Hits h = is.search(q);
> clock.suspend();
> System.out.println("\r" + i);
> clock.resume();
> for(int j = 0; j < h.length(); j ++)
> {
> h.doc(j).get("name");
> h.doc(j).get("path");
> h.doc(j).get("contens");
^^^^^^^ Surely that should be contents - is this a
typo in the mail or was this a copy paste? Because
if this is a copy paste, and you're really fetching
contens rather than contents, then that might well
be why the java is seeming to go twice as fast as
the python.
> testonly = j;
> }
> }
> clock.stop();
> System.out.println("Total: " + clock.getTime() + "ms.");
> ..
>
Thanks,
--
Brett Parker
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev