mò )á¸Ec@s,dZdkZdeifd„ƒYZdS(sIndex Interface.NtIIndexcBshtZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „Z d „Z RS( sInterface for an Index.cCsdS(s(Return the number of words in the index.N((((t:/data/zmath/zope/lib/python/Products/ZCTextIndex/IIndex.pytlengthscCsdS(s,Return the number of documents in the index.N((((Rtdocument_countscCsdS(s-Return a list of wordids for the given docid.N((tdocid((Rt get_wordsscCsdS(sExecute a search on a single term given as a string. Return an IIBTree mapping docid to score, or None if all docs match due to the lexicon returning no wids for the term (e.g., if the term is entirely composed of stopwords). N((tterm((RtsearchscCsdS(skExecute a search on a phrase given as a string. Return an IIBtree mapping docid to score. N((tphrase((Rt search_phrase'scCsdS(sÿExecute a pattern search. The pattern represents a set of words by using * and ?. For example, "foo*" represents the set of all words in the lexicon starting with "foo". Return an IIBTree mapping docid to score. N((tpattern((Rt search_glob-scCsdS(s™Return the weight for a set of query terms. 'terms' is a sequence of all terms included in the query, although not terms with a not. If a term appears more than once in a query, it should appear more than once in terms. Nothing is defined about what "weight" means, beyond that the result is an upper bound on document scores returned for the query. N((tterms((Rt query_weight7s cCsdS(sTAdd a document with the specified id and text to the index. If a document by that id already exists, replace its text with the new text provided text may be either a string (Unicode or otherwise) or a list of strings from which to extract the terms under which to index the source document. N((Rttext((Rt index_docCscCsdS(s8Remove the document with the specified id from the indexN((R((Rt unindex_docLscCsdS(s9Returns true if docid is an id of a document in the indexN((R((Rthas_docOs( t__name__t __module__t__doc__RRRRR R R RRR(((RRs       (Rt InterfacetBaseR(RR((Rt?s