-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathIDEAS.txt
43 lines (32 loc) · 1.07 KB
/
IDEAS.txt
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
IndexMapping...
types map[string]DocMapping
defaultMapping DocMapping...
FieldMappings []FieldMapping{FieldMapping{Name: "body_en", Analyzer: "en"}, FieldMapping{Name: "body_es", Analyzer: "es"}}
DocMapping...
Properties map[string]DocMapping
FieldMappings []FieldMapping (unpropertied field mappings)
some properties are "field mappings only"
==> graduate up to containing DocMapping as a "propertied field"
a named field would normally be
DocMapping...
Properties["description"] :=
DocMapping...
Properties := nil
FieldMapping{ Name: "description_en" }
FieldMapping{ Name: "description_es" }
example IndexMapping
type [default]...
type: beer...
type: brewery...
fields:
name: description_en, property:
name: description_en, property: "description
name: description_es, property: "description
nested mappings:
address...
named fields:
city: city_en
city: city_es
nested mappings:
field mappings:
field mappings (uncommon, read-only)