Mapper Attachment Plugin - searching large attachments


(Brian DeVaca) #1

Is it possible to query attachment content using the Mapper Attachments Plugin and just get back a list of IDs? I don't need to get the content back and I would like to not have to worry about memory issue for large attachments.


(David Pilato) #2

Just ask for an empty list for fields.

GET /_search
{
    "stored_fields" : [ ]
}

This should work.

Before 5.0:

GET /_search
{
    "fields" : [ ]
}

(Brian DeVaca) #3

Awesome! Thanks!


(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.