forked from kanedata/find-that-charity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
es_config.yml
46 lines (46 loc) · 1.01 KB
/
es_config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
inline:
query:
function_score:
query:
dis_max:
queries:
- multi_match:
query: "{{name}}"
fields:
- known_as^3
- alt_names
- match_phrase:
known_as: "{{name}}"
- multi_match:
query: "{{name}}"
fields:
- ccni_number
- ccew_number
- oscr_number
- company_number.number
functions:
- filter:
match_phrase_prefix:
known_as: "{{name}}"
weight: 200
- filter:
multi_match:
query: "{{name}}"
fields:
- known_as^3
- alt_names
operator: and
weight: 10
- filter:
term:
active: false
weight: 0.9
- field_value_factor:
field: latest_income
modifier: log2p
missing: 1
params:
name: term
charity_number: term
domain_name: term