codelibs/elasticsearch-dataformat

Including metadata in output

lozarian opened this issue · 3 comments

I'm trying to get this to include metadata in the export - I've got it working fine for the fields I need, but I need to tie access data to the indexed data from another system, which is logged by _id

Is this possible here? I've tried a number of methods but nothing seems to work.

How about using fl=_id,..?

I tried that, couldn't get it to work at all - do you have an example? I'm probably missing something obvious, but it only returned non metadata values.

PnPie commented

Is it an idea to put the three columns _index, _type, _id at the beginning of the dumped data to describe more concretely about the document, especially when we want to re-use it and when there are severals indices and types.