2023-12-30 05:29:53 +00:00
|
|
|
import config from 'config';
|
|
|
|
import manticore from 'manticoresearch';
|
|
|
|
|
|
|
|
const mantiClient = new manticore.ApiClient();
|
|
|
|
|
|
|
|
mantiClient.basePath = `http://${config.database.manticore.host}:${config.database.manticore.httpPort}`;
|
|
|
|
|
|
|
|
export const searchApi = new manticore.SearchApi(mantiClient);
|
2024-03-14 23:08:24 +00:00
|
|
|
export const indexApi = new manticore.IndexApi(mantiClient);
|
|
|
|
export const utilsApi = new manticore.UtilsApi();
|