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