mirror of https://github.com/bpb27/tta-elastic
17 lines
417 B
JavaScript
17 lines
417 B
JavaScript
import { wrapper } from './utils.js';
|
|
|
|
const name = 'religion';
|
|
|
|
const search = 'relig* | christi* | god | bible | jesus';
|
|
|
|
const body = wrapper(builder =>
|
|
builder
|
|
.orFilter('wildcard', 'text', 'relig*')
|
|
.orFilter('wildcard', 'text', 'christi*')
|
|
.orFilter('match', 'text', 'god')
|
|
.orFilter('match', 'text', 'bible')
|
|
.orFilter('match', 'text', 'jesus')
|
|
);
|
|
|
|
export default { body, name, search };
|