mirror of https://github.com/bpb27/tta-elastic
15 lines
325 B
JavaScript
15 lines
325 B
JavaScript
import { wrapper } from './utils.js';
|
|
|
|
const name = 'covid';
|
|
|
|
const search = 'covid* | virus | coronavirus';
|
|
|
|
const body = wrapper(builder =>
|
|
builder
|
|
.orFilter('wildcard', 'text', 'covid*')
|
|
.orFilter('match', 'text', 'virus')
|
|
.orFilter('match', 'text', 'coronavirus')
|
|
);
|
|
|
|
export default { body, name, search };
|