Example #1
0
        /// <inheritdoc/>
        public override IntermediateQueryResult Evaluate(Func <IIndexNavigator> navigatorCreator, IQueryContext queryContext)
        {
            if (navigatorCreator == null)
            {
                throw new ArgumentNullException(nameof(navigatorCreator));
            }

            using (var navigator = navigatorCreator())
            {
                navigator.Process(this.Word.AsSpan());
                return(queryContext.ApplyTo(navigator.GetExactAndChildMatches()));
            }
        }