DaffInMemorySearchDriver
The search inmemory driver to mock the search backend service.
import { DaffInMemorySearchDriver } from '@daffodil/search/driver/in-memory'
@Injectable()
class DaffInMemorySearchDriver extends DaffInMemoryDriverBase implements DaffSearchDriverInterface {
search(
query: string
options: DaffSearchDriverOptions = {}
): Observable<DaffSearchDriverResponse>
incremental(
query: string
options: DaffSearchDriverOptions = {}
): Observable<DaffSearchResultCollection>
}
Properties
Name | Type | Description |
---|---|---|
search | Observable<DaffSearchDriverResponse> | Searches for entities according to the specified query.
This method provides substantially more information than |
incremental | Observable<DaffSearchResultCollection> | Rapidly searches for entities. This is intended to be called as the user types their search query.
Less information is requested in comparison to |