BitFunnel
BitFunnel is the search engine indexing algorithm used in the Bing search engine, which was made open source in 2016.[1] BitFunnel uses bit-sliced signatures instead of an inverted index in an attempt to reduce operations cost.[2]
History
Progress on the implementation of BitFunnel was made public in early 2016, with the expectation that there would be a usable implementation later that year.[3] In September 2016, the source code was made available via Github.[4] A paper discussing the BitFunnel algorithm and implementation was released as through the Special Interest Group on Information Retrieval of the Association for Computing Machinery in 2017 and won the Best Paper Award.[2] [5]
Algorithm
Initial problem and solution overview
The BitFunnel paper describes the "matching problem", which occurs when an algorithm must identify documents through the usage of keywords. The goal of the problem is to identify a set of matches given a corpus to search and a query of keyword terms to match against. This problem is commonly solved through inverted indexes, where each searchable item is maintained with a map of keywords.[2]
In contrast, BitFunnel represents each searchable item through a signature. A signature is a sequence of bits which describe a Bloom filter of the searchable terms in a given searchable item. The bloom filter is constructed through hashing through several bit positions.[2]
Theoretical implementation of Bit-String Signatures
The signature of a document (D) can be described as the logical-or of its term signatures:
[math]\displaystyle{ \overrightarrow{S_D}=\bigcup \limits_{t \in D} \overrightarrow{S_t} }[/math]
Similarly, a query for a document (Q) can be defined as a union:
[math]\displaystyle{ \overrightarrow{S_Q}=\bigcup \limits_{t \in Q} \overrightarrow{S_t} }[/math]
Additionally, a document D is a member of the set M' when the following condition is satisfied:
[math]\displaystyle{ \overrightarrow{S_Q} \cap \overrightarrow{S_D} = \overrightarrow{S_Q} }[/math]
This knowledge is then combined to produce a formula where M' is identified by documents which match the query signature:
[math]\displaystyle{ M'=\{ D \in C | \overrightarrow{S_Q} \cap \overrightarrow{S_D} = \overrightarrow{S_Q}\} }[/math]
These steps and their proofs are discussed in the 2017 paper.[2]
Pseudocode for Bit-String Signatures
This algorithm is described in the 2017 paper.[2]
- [math]\displaystyle{ \begin{array}{l} M'=\emptyset \\ \texttt{for}\ \texttt{all}\ D \in C\ \texttt{do} \\ \qquad \texttt{if}\ \overrightarrow{S_D} \cap \overrightarrow{S_Q} = \overrightarrow{S_Q}\ \texttt{then} \\ \qquad \qquad M' = M' \cup \{ D \} \\ \qquad \texttt{end if} \\ \texttt{end for} \end{array} }[/math]
References
- ↑ Verma, Arpit (2016-09-07). "Microsoft Open Sources Major Components Of Bing Search Engine, Here's Why It Matters" (in en-US). https://fossbytes.com/microsoft-working-open-source-search-components-used-power-bing/.
- ↑ 2.0 2.1 2.2 2.3 2.4 2.5 Goodwin, Bob; Hopcroft, Michael; Luu, Dan; Clemmer, Alex; Curmei, Mihaela; Elnikety, Sameh; He, Yuxiong (2017-08-07). "BitFunnel". Proceedings of the 40th International ACM SIGIR Conference on Research and Development in Information Retrieval (New York, NY, USA: ACM). doi:10.1145/3077136.3080789. ISBN 978-1-4503-5022-8. http://dx.doi.org/10.1145/3077136.3080789.
- ↑ "When will BitFunnel be usable? · BitFunnel". http://bitfunnel.org/progress/.
- ↑ BitFunnel/BitFunnel, BitFunnel, 2020-05-12, https://github.com/BitFunnel/BitFunnel, retrieved 2020-06-12
- ↑ "SIGIR Best Paper Awards". ACM. https://sigir.org/awards/best-paper-awards/. Retrieved 8 July 2020.
Original source: https://en.wikipedia.org/wiki/BitFunnel.
Read more |