traxxx-web/src/manticore.js

9 lines
288 B
JavaScript

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);