This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ApiResponse } from '@elastic/elasticsearch'; | |
import { | |
TransportRequestCallback, | |
TransportRequestOptions, | |
} from '@elastic/elasticsearch/lib/Transport'; | |
import { Observable } from 'rxjs'; | |
/** | |
* Use ElasticSearch API with RxJS observables that can be | |
* cancelled. Observables are cold -- they must be subscribed to make |