multi field mapping elasticsearch -
i'm trying map multi field in elasticsearch
- 1st field - 'in' should contain indexed column,
- 2nd field - 'orig' should contain text as-is.
for example:
"findings": { "type": "multi_field", "fields": { "in": { "type": "string" }, "orig": { "type": "string", "index":"not_analyzed" } }
once create , query how looks.
when index = 'no' mean field never indexed @ all?
"findings": { "type": "string", "index": "no", "fields": { "in": { "type": "string" }, "orig": { "type": "string", "index": "not_analyzed" } }
"index" : "no"
has got different meaning different types. since findings
field in question string
has following meaning according elasticsearch documentation
.
no means won’t searchable @ (as individual field; may still included in _all). setting no disables include_in_all.
you can not directly search field findings
has got index: no
while can search using findings.in
or findings.orig
you can study more index
property here
Comments
Post a Comment