mirror of https://github.com/bpb27/tta-elastic
21 lines
626 B
JavaScript
21 lines
626 B
JavaScript
import { wrapper } from './utils.js';
|
|
|
|
const name = 'election';
|
|
|
|
const search =
|
|
'election* | absentee | rigged | electoral | ballot | postal | \\"post office\\" | \\"mail-in\\"';
|
|
|
|
const body = wrapper(builder =>
|
|
builder
|
|
.orFilter('wildcard', 'text', 'election*')
|
|
.orFilter('match', 'text', 'absentee')
|
|
.orFilter('match', 'text', 'rigged')
|
|
.orFilter('match', 'text', 'electoral')
|
|
.orFilter('match', 'text', 'ballot')
|
|
.orFilter('match', 'text', 'postal')
|
|
.orFilter('match_phrase', 'text', 'post office')
|
|
.orFilter('match_phrase', 'text', 'mail-in')
|
|
);
|
|
|
|
export default { body, name, search };
|