4 instantiations of DocsSearchResult
aspire (1)
Mcp\Docs\DocsIndexService.cs (1)
236results.Add(new DocsSearchResult
Aspire.Cli.Tests (3)
Commands\DocsCommandTests.cs (2)
195new() { Title = "Redis Integration", Slug = "redis-integration", Summary = "Learn how to use Redis", Score = 100.0f, MatchedSection = "Hosting integration" }, 196new() { Title = "Azure Cache for Redis", Slug = "azure-cache-redis", Summary = "Azure Redis integration", Score = 80.0f, MatchedSection = "Client integration" }
Mcp\TestDocsIndexService.cs (1)
79.Select(d => new DocsSearchResult { Slug = d.Slug, Title = d.Title, Summary = d.Summary, Score = 1.0f })
9 references to DocsSearchResult
aspire (3)
Mcp\Docs\DocsIndexService.cs (3)
40ValueTask<IReadOnlyList<DocsSearchResult>> SearchAsync(string query, int topK = 10, CancellationToken cancellationToken = default); 210public async ValueTask<IReadOnlyList<DocsSearchResult>> SearchAsync(string query, int topK = 10, CancellationToken cancellationToken = default) 228var results = new List<DocsSearchResult>();
Aspire.Cli.Tests (6)
Commands\DocsCommandTests.cs (4)
191public ValueTask<IReadOnlyList<DocsSearchResult>> SearchAsync(string query, int topK = 10, CancellationToken cancellationToken = default) 193var results = new List<DocsSearchResult> 198return ValueTask.FromResult<IReadOnlyList<DocsSearchResult>>(results.Take(topK).ToList() as IReadOnlyList<DocsSearchResult>);
Mcp\TestDocsIndexService.cs (2)
73public ValueTask<IReadOnlyList<DocsSearchResult>> SearchAsync(string query, int topK = 10, CancellationToken cancellationToken = default) 82return ValueTask.FromResult<IReadOnlyList<DocsSearchResult>>(results);