filter only on name in index management (#34372)

This commit is contained in:
Bill McConaghy 2019-04-02 15:08:49 -04:00 committed by GitHub
parent 6703848f92
commit 112cbf88f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,7 +32,7 @@ export const getIndexStatusByIndexName = (state, indexName) => {
const { status } = indices[indexName] || {};
return status;
};
const defaultFilterFields = ['name', 'uuid'];
const defaultFilterFields = ['name'];
const filterByToggles = (indices, toggleNameToVisibleMap) => {
const togglesByName = getToggleExtensions().reduce((byName, toggle) => ({
@ -68,7 +68,8 @@ const getFilteredIndices = createSelector(
? indexArray
: indexArray.filter(index => !(index.name + '').startsWith('.'));
const filter = tableState.filter || EuiSearchBar.Query.MATCH_ALL;
return EuiSearchBar.Query.execute(filter, systemFilteredIndexes, defaultFilterFields);
return EuiSearchBar.Query.execute(filter, systemFilteredIndexes,
{ defaultFields: defaultFilterFields });
}
);
export const getTotalItems = createSelector(