Пример #1
0
        /// <summary>
        /// Does the test.
        /// </summary>
        protected override void DoTest(int testNumber)
        {
            var query    = QasParams.Queries[testNumber];
            var results  = _qas.Search(query);
            var docCount = results.Select(e => e.DocumentID).Distinct().Count();

            Log.DebugFormat("Do Query {0} DocCount={1} ResultsCount={2}", query, docCount, results.Count());
        }
Пример #2
0
        /// <summary>
        /// Does the test.
        /// </summary>
        protected override void DoTest(int testNumber)
        {
            var query         = QasParams.Queries[testNumber];
            var resultsSearch = _qas.Search(query);

            var sentences = GetQuerySentences(resultsSearch);

            Log.DebugFormat("Thread {0} do clusterize '{1}' senteces {2}",
                            Thread.CurrentThread.ManagedThreadId, (query.Query), sentences.Length);

            _clusterizer.Clusterize(query.Query, sentences);

            Log.Debug("Do Clusterise ");
        }