feat(core): add ISearchProcessor interface for search execution abstraction

This commit is contained in:
Joseph Doherty
2026-01-07 06:04:17 -05:00
parent c814a7294b
commit 488aef560b
@@ -0,0 +1,17 @@
using JdeScoping.Core.Models.SearchResults;
namespace JdeScoping.Core.Interfaces;
/// <summary>
/// Interface for search query execution.
/// </summary>
public interface ISearchProcessor
{
/// <summary>
/// Executes search and materializes all results into SearchModel.
/// </summary>
/// <param name="model">The search model containing search ID.</param>
/// <param name="ct">Cancellation token.</param>
/// <returns>The SearchModel populated with results.</returns>
Task<SearchModel> ExecuteSearchToModelAsync(SearchModel model, CancellationToken ct = default);
}