예제 #1
0
        public WordIndexReader(string word, WordStepDocIndex wordStepDocIndex, int totalDocs,
                               Data.DBProvider dbProvider, IndexFileProxy indexProxy, int maxReturnCount)
        {
            _Word        = word;
            _IndexReader = new IndexReader(wordStepDocIndex, indexProxy);
            _DBProvider  = dbProvider;
            _DelProvider = _DBProvider.DelProvider;
            //_TabIndex = tabIndex;
            _TotalDocs    = totalDocs;
            _WordCountSum = wordStepDocIndex.WordCountSum;
            _RelDocCount  = wordStepDocIndex.RelDocCount;

            if (maxReturnCount < 0)
            {
                _Count = _RelDocCount;
            }
            else
            {
                _Count = Math.Min(maxReturnCount, _RelDocCount);
            }


            //UpdateDocScoreList();
        }
예제 #2
0
파일: IndexFile.cs 프로젝트: wj60387/hubble
 public IndexFile(string path, IIndexFile indexFileInterface, IndexFileProxy indexProxy)
 {
     _IndexFileInterface = indexFileInterface;
     _Path           = Hubble.Framework.IO.Path.AppendDivision(path, '\\');
     _IndexFileProxy = indexProxy;
 }
예제 #3
0
 public IndexMerge(string indexDir, IndexFileProxy indexFileProxy)
 {
     _IndexDir       = Hubble.Framework.IO.Path.AppendDivision(indexDir, '\\');
     _IndexFileProxy = indexFileProxy;
 }
예제 #4
0
 public IndexReader(WordStepDocIndex wsdi, IndexFileProxy indexProxy)
 {
     _WordStepDocIndex = wsdi;
     _IndexFileProxy   = indexProxy;
 }