2 instantiations of ApiSearchResult
aspire (1)
Documentation\ApiDocs\ApiDocsIndexService.cs (1)
742results.Add(new ApiSearchResult
Aspire.Cli.Tests (1)
Commands\ApiCommandTests.cs (1)
127new()
18 references to ApiSearchResult
aspire (9)
Commands\ApiSearchCommand.cs (1)
95foreach (var item in items)
Documentation\ApiDocs\ApiDocsIndexService.cs (7)
296ValueTask<IReadOnlyList<ApiSearchResult>> SearchAsync(string query, string? language = null, int topK = 10, CancellationToken cancellationToken = default); 471public async ValueTask<IReadOnlyList<ApiSearchResult>> SearchAsync(string query, string? language = null, int topK = 10, CancellationToken cancellationToken = default) 720private IReadOnlyList<ApiSearchResult> SearchIndexedItems(string[] queryTokens, string normalizedQuery, string? normalizedLanguage, int topK) 727var results = new List<ApiSearchResult>(); 783private bool ShouldExpandSearchWithMemberIndex(IReadOnlyList<ApiSearchResult> results, string normalizedQuery, string? normalizedLanguage) 795private static bool ContainsExactSearchMatch(IReadOnlyList<ApiSearchResult> results, string normalizedQuery) 800private IReadOnlyList<string> GetCandidateMemberContainerIds(IReadOnlyList<ApiSearchResult> routeResults, string[] queryTokens, string? normalizedLanguage)
JsonSourceGenerationContext.cs (1)
57[JsonSerializable(typeof(ApiSearchResult[]))]
Aspire.Cli.Tests (9)
Commands\ApiCommandTests.cs (2)
123public ValueTask<IReadOnlyList<ApiSearchResult>> SearchAsync(string query, string? language = null, int topK = 10, CancellationToken cancellationToken = default) 125IReadOnlyList<ApiSearchResult> items =
Mcp\ApiDocs\ApiDocsIndexServiceTests.cs (7)
163var result = Assert.Single(csharpResults); 178var goResult = Assert.Single(goResults); 184var typeScriptResult = Assert.Single(typeScriptResults); 218var result = Assert.Single(results); 254var result = Assert.Single(results); 285var firstResult = results[0]; 344var result = Assert.Single(results);