mò (á¸Ec @sÉdkZdklZdkZdklZddddddd d d d d g Zd„Zdkl Z l Z dk l Z dk lZd„Zedjo&dkZdkZdZdZdZy#eieiddƒ\ZZWn/eij o ZeGHeGHeidƒnXx]eD]U\ZZedjoed7Znedjo eZnedjo dZqqWeeddƒZei eddƒZ!e!i"ƒZ#e#i$ƒZ%ee%ƒndS(N(sclock(s FileStoragesnested recursive functionssexplicit better than implicits build hpuxs(cannot create 'method-wrapper' instancessextension module C++s class methodsinstance variablesarticulate informationsimport default filessgopher ftp httpt documentationcCsFd}|i|ƒ}|djo|Sn|t|ƒ7}d||S(Nswww.python.org/.iÿÿÿÿshttp://www.python.org(tmarkertptfindtitlen(RRR((tC/data/zmath/zope/lib/python/Products/ZCTextIndex/tests/queryhtml.pytpath2urls  (sAndsOr(s MySplitter(sNBestcCsl|d}|d} h}tdƒ}xÖtdƒD]È}x¿tD]·}|i ƒ} x¢dD]š}|i | ƒ}tƒ}to|djo t}nt}di | ƒ} x˜|D]U}|i | |ƒiƒ}t|ƒ}tdƒ} | i|iƒƒ| iƒ}q±Wn8y*x#|D]}|i |ƒ\}}qWWn qYnXtƒ}d |GHd |GHd ||GH|}|d joPd GHx<|D]4\}} t$| |ƒ}d}|||| fGHqŒWdGHqYn|i'|gƒ}|i)||ƒqYWq@Wq3W|i*ƒ}|i+ƒdGHxK|D]C}||}d |GHdt.|ƒGHddi t/t0|ƒƒGHq!WdS(Ntindextfilesi2i s OR s AND t i s

Query: "%s"s
Num results: %ds
time.clock(): %sis

    s"
  1. %s score = %ss
s
s
Min time: %ss
All times: %s(s OR s AND (1trtRR ttimestrangetITERSRtQUERIEStqtsplitttermstctjointquerytclocktt0t TEXTINDEXtOrtoptAndt_qt_tbuckettbRtnumtNBesttchoosertaddmanytitemstgetbesttresultstt1tkeytdocidtscoreRturltfmtt setdefaulttltappendtkeystsorttktvtmintmaptstr(R R&R R+RR'RR)R,R"RR*R RR(RRRRR2R.RR RRR3R((Rtmain"sp                    t__main__isData.fsisvf:Tis-vs-fs-Tt read_onlyt cache_sizei'(&tosttimeRtZODBtZODB.FileStoraget FileStorageRRt*Products.PluginIndexes.TextIndex.TextIndexRRt$Products.ZCTextIndex.tests.indexhtmlt MySplittertProducts.ZCTextIndex.NBestR!R7t__name__tsystgetopttVERBOSEtFSPATHRtargvtoptstargsterrortmsgt__doc__texittoR3tfstDBtdbtopentcntrootR (RURRBRR RR?RRMRFRHR7RQRKRSRER=R!RRRGRPR3R;RJ((Rt?sD    '    7   #