是的
使用源过滤器。如果您使用JSON搜索,它将看起来像这样:
{ "_source": ["user", "message", ...], "query": ..., "size": ...}在ES 2.4及更低版本中,您还可以在search
API中使用fields选项:
{ "fields": ["user", "message", ...], "query": ..., "size": ...}ES 5+中已弃用此功能。而且,源过滤器更强大!

是的
使用源过滤器。如果您使用JSON搜索,它将看起来像这样:
{ "_source": ["user", "message", ...], "query": ..., "size": ...}在ES 2.4及更低版本中,您还可以在search
API中使用fields选项:
{ "fields": ["user", "message", ...], "query": ..., "size": ...}ES 5+中已弃用此功能。而且,源过滤器更强大!