mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Maps] Support runtime fields in tooltips (#84377)
This commit is contained in:
parent
4ae84a00a5
commit
49f0ca0827
1 changed files with 7 additions and 1 deletions
|
@ -487,8 +487,14 @@ export class ESSearchSource extends AbstractESSource implements ITiledSingleLaye
|
|||
return {};
|
||||
}
|
||||
|
||||
const { docValueFields } = getDocValueAndSourceFields(
|
||||
indexPattern,
|
||||
this._getTooltipPropertyNames()
|
||||
);
|
||||
|
||||
const initialSearchContext = { docvalue_fields: docValueFields }; // Request fields in docvalue_fields insted of _source
|
||||
const searchService = getSearchService();
|
||||
const searchSource = searchService.searchSource.createEmpty();
|
||||
const searchSource = await searchService.searchSource.create(initialSearchContext as object);
|
||||
|
||||
searchSource.setField('index', indexPattern);
|
||||
searchSource.setField('size', 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue