Esempio n. 1
0
        private void AddEntry(string word, int occurenceCount, Document document)
        {
            if (!index.ContainsKey(word))
            {
                index[word] = new PostingsList();
            }

            index[word].AddDocument(document.ID, occurenceCount);
        }
        private void AddEntry(string word, int occurenceCount, Document document)
        {
            if (!index.ContainsKey(word))
            {
                index[word] = new PostingsList();
            }

            index[word].AddDocument(document.ID, occurenceCount);
        }