Пример #1
0
        public void AddDocTermCount(string term, uint docID, uint count)
        {
            TermIndexEntry termIndexEntry;
            if (_terms.ContainsKey(term))
            {
                termIndexEntry = _terms[term];
            }
            else
            {
                termIndexEntry = new TermIndexEntry();
                _terms[term] = termIndexEntry;
            }

            termIndexEntry[docID] = count;
        }
Пример #2
0
        public void AddDocTermCount(string term, uint docID, uint count)
        {
            TermIndexEntry termIndexEntry;

            if (_terms.ContainsKey(term))
            {
                termIndexEntry = _terms[term];
            }
            else
            {
                termIndexEntry = new TermIndexEntry();
                _terms[term]   = termIndexEntry;
            }

            termIndexEntry[docID] = count;
        }