mirror of https://github.com/bpb27/tta-elastic
19 lines
538 B
JavaScript
19 lines
538 B
JavaScript
import { wrapper } from './utils.js';
|
|
|
|
const name = 'approval';
|
|
|
|
const search = 'poll* | rating* | crowd* | ovation* | cheer* | approval | rated';
|
|
|
|
const body = wrapper(builder =>
|
|
builder
|
|
.orFilter('wildcard', 'text', 'poll*')
|
|
.orFilter('wildcard', 'text', 'rating*')
|
|
.orFilter('wildcard', 'text', 'crowd*')
|
|
.orFilter('wildcard', 'text', 'ovation*')
|
|
.orFilter('wildcard', 'text', 'cheer*')
|
|
.orFilter('match', 'text', 'approval')
|
|
.orFilter('match', 'text', 'rated')
|
|
);
|
|
|
|
export default { body, name, search };
|