2 instantiations of ApiSearchResult
aspire (1)
Documentation\ApiDocs\ApiDocsIndexService.cs (1)
733
results.Add(new
ApiSearchResult
Aspire.Cli.Tests (1)
Commands\ApiCommandTests.cs (1)
127
new
()
15 references to ApiSearchResult
aspire (9)
Commands\ApiSearchCommand.cs (1)
95
foreach (
var
item in items)
Documentation\ApiDocs\ApiDocsIndexService.cs (7)
290
ValueTask<IReadOnlyList<
ApiSearchResult
>> SearchAsync(string query, string? language = null, int topK = 10, CancellationToken cancellationToken = default);
462
public async ValueTask<IReadOnlyList<
ApiSearchResult
>> SearchAsync(string query, string? language = null, int topK = 10, CancellationToken cancellationToken = default)
711
private IReadOnlyList<
ApiSearchResult
> SearchIndexedItems(string[] queryTokens, string normalizedQuery, string? normalizedLanguage, int topK)
718
var results = new List<
ApiSearchResult
>();
770
private bool ShouldExpandSearchWithMemberIndex(IReadOnlyList<
ApiSearchResult
> results, string normalizedQuery, string? normalizedLanguage)
782
private static bool ContainsExactSearchMatch(IReadOnlyList<
ApiSearchResult
> results, string normalizedQuery)
787
private IReadOnlyList<string> GetCandidateMemberContainerIds(IReadOnlyList<
ApiSearchResult
> routeResults, string[] queryTokens, string? normalizedLanguage)
JsonSourceGenerationContext.cs (1)
52
[JsonSerializable(typeof(
ApiSearchResult
[]))]
Aspire.Cli.Tests (6)
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 (4)
77
var
result = Assert.Single(csharpResults);
90
var
result = Assert.Single(results);
121
var
firstResult = results[0];
180
var
result = Assert.Single(results);