mirror of https://github.com/bpb27/tta-elastic
16 lines
362 B
JavaScript
16 lines
362 B
JavaScript
import { wrapper } from './utils.js';
|
|
|
|
const name = 'stocks';
|
|
|
|
const search = 'stock* | market | dow | nasdaq';
|
|
|
|
const body = wrapper(builder =>
|
|
builder
|
|
.orFilter('wildcard', 'text', 'stock*')
|
|
.orFilter('match', 'text', 'market')
|
|
.orFilter('match', 'text', 'dow')
|
|
.orFilter('match', 'text', 'nasdaq')
|
|
);
|
|
|
|
export default { body, name, search };
|