Class BaseSearchProvider
- Namespace
- Examine
- Assembly
- Examine.Core.dll
Abstract searcher
public abstract class BaseSearchProvider : ISearcher
- Inheritance
-
BaseSearchProvider
- Implements
- Derived
- Inherited Members
Constructors
BaseSearchProvider(string)
protected BaseSearchProvider(string name)
Parameters
name
string
Properties
Name
The searchers name
public string Name { get; }
Property Value
Methods
CreateQuery(string?, BooleanOperation)
Creates a search criteria instance as required by the implementation
public abstract IQuery CreateQuery(string? category = null, BooleanOperation defaultOperation = BooleanOperation.And)
Parameters
category
stringThe type of data in the index.
defaultOperation
BooleanOperationThe default operation.
Returns
- IQuery
An instance of IQueryExecutor
Search(string, QueryOptions?)
Searches the index
public abstract ISearchResults Search(string searchText, QueryOptions? options = null)
Parameters
searchText
stringThe search text or a native query
options
QueryOptions
Returns
- ISearchResults
Search Results