发明名称 Methods for prefix indexing
摘要 According to one aspect of the invention, in response to one or more terms to be indexed, each of the terms is indexed in a regular index. In addition, for each of the terms having multiple characters, at least one prefix portion of the term is indexed in a prefix index, where the regular index is used for regular searches and the prefix index is used for prefix searches without having to combine a plurality of postings lists of the regular index at the point in time.
申请公布号 US8914377(B2) 申请公布日期 2014.12.16
申请号 US201313746837 申请日期 2013.01.22
申请人 Apple Inc. 发明人 Hornkvist John M.;Koebler Eric R.
分类号 G06F7/00;G06F17/30 主分类号 G06F7/00
代理机构 Blakely, Sokoloff, Taylor & Zafman LLP 代理人 Blakely, Sokoloff, Taylor & Zafman LLP
主权项 1. A computer-implemented method for indexing one or more terms, comprising: in response to one or more terms to be indexed, indexing each of the one or more terms in a regular index, the regular index having a plurality of postings lists and each postings list corresponding to a string containing one of the one or more terms; for each of the one or more terms having a plurality of characters, indexing at least one prefix portion of each term in a prefix index that is processed separately from the regular index, wherein the regular index is used for regular searches, and wherein the prefix index is used for prefix searches without having to combine the plurality of postings lists of the regular index in response to a search query; receiving a search query having a search term for searching files that contain the search term from a client; determining whether a search to be performed is a regular search or a prefix search; if the search is a regular search, searching in the regular index to identify a plurality of postings lists, each containing the search term, andreturning to the client, a list of item identifiers from the plurality of postings lists obtained from the regular index; and if the search is a prefix search, searching in the prefix index to identify a single postings list that exactly matches the search term, andreturning to the client, a list of item identifiers from the single postings list.
地址 Cupertino CA US