19 lines
578 B
C#
19 lines
578 B
C#
using System.Collections.Generic;
|
|
|
|
namespace VideoGameQuotes.Api.Search {
|
|
/// <summary>
|
|
/// Exposes an interface to search for quotes
|
|
/// </summary>
|
|
public interface IQuoteSearcher {
|
|
/// <summary>
|
|
/// Searches for quote based on the given search query
|
|
/// </summary>
|
|
IEnumerable<SearchResult> Search(string query);
|
|
|
|
/// <summary>
|
|
/// (Re)builds the search index
|
|
/// </summary>
|
|
/// <param name="replaceOldIndex">Set to false to not overwrite the old index with a brand new one.</param>
|
|
void BuildIndex(bool replaceOldIndex = true);
|
|
}
|
|
} |