<PackageReference Include="Relativity.Server.Testing.Framework.Api.SDK" Version="5000.1.0" />

ISearchProviderService

public interface ISearchProviderService
Represents the search provider API service.
SearchProvider Create(int workspaceId, SearchProvider entity)

Creates the specified search provider.

void Delete(int workspaceId, int entityId)

Deletes the search provider by ID.

SearchProvider Get(int workspaceId, int entityId)

Gets the search provider by the specified ID.

SearchProvider Get(int workspaceId, string entityName)

Gets the search provider by the specified name.

List<Dependency> GetDependencies(int workspaceId, int entityId)

Gets the list of dependencies.

SearchProvider Require(int workspaceId, SearchProvider entity)

Requires the specified search provider. If [ArtifactID](https://relativitydev.github.io/relativity.testing.framework/api/Relativity.Testing.Framework.Models.Artifact.html#Relativity_Testing_Framework_Models_Artifact_ArtifactID) property of entity has positive value, gets entity by ID and updates it.If [Name](https://relativitydev.github.io/relativity.testing.framework/api/Relativity.Testing.Framework.Models.NamedArtifact.html#Relativity_Testing_Framework_Models_NamedArtifact_Name) property of entity has a value, gets entity by name and updates it if it exists.Otherwise creates a new entity using ICreateWorkspaceEntityStrategy<T>.

void Update(int workspaceId, SearchProvider entity)

Updates the specified search provider.