Resolve "Retype mapping generation using @elastic/elasticsearch"

This commit is contained in:
Thea Schöbl
2023-04-28 11:15:08 +00:00
committed by Rainer Killinger
parent fc850fe7ac
commit d90416e201
42 changed files with 441 additions and 596 deletions

View File

@@ -12,7 +12,6 @@
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <https://www.gnu.org/licenses/>.
*/
import {ElasticsearchDataType} from '../../src/config/typemap';
import {generateTemplate} from '../../src/mapping';
import path from 'path';
import {expect} from 'chai';
@@ -121,10 +120,10 @@ export class MapAggTest {
};
const maps = map.maps ?? {};
maps.type = {
type: ElasticsearchDataType.text,
type: 'text',
};
maps.creation_date = {
type: ElasticsearchDataType.date,
type: 'date',
};
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore can be used to index