_ewinfo

  • -

_ewinfo

Category : latest version

In most cases you get file ID only. _ewinfo allows you to get more file information from the provided id. When ID is not known, you can point file by providing folder and filename.

Parameter From version Requirement Type Description
id all optional string File id whose detailed information is being requested
showrequest all optional boolean When set to “true” ElasticWarehouse node prints converted JSON request on standard output. Converted JSON request can be executed directly on ElasticSearch cluster. It’s useful when you plan to build your own ElasticWarehouse client connected directly to the ElasticSearch cluster.
folder >=1.2.1 optional string Use pair folder/filename attributes to get file information when When ID is not known
filename >=1.2.1 optional string Use pair folder/filename attributes to get file information when When ID is not known
set >=1.2.1 optional boolean Default value is FALSE. Set to TRUE to modify particular file attributes
attribute >=1.2.1 optional string Used when set=true. Defines attribute name to be modified
value >=1.2.1 optional string Used when set=true. Defines new value of attribute

You can use ewshell wrapper to get file information:

ewshell.sh -c info 6pnHlt3XRRCr-PT6-mg8RA --showmeta 1

Or execute it directly via ElasticWarehouse REST API:

curl -XGET "http://localhost:10200/_ewinfo?id=aYLro1V_TzO0tfLNmbp4gA"

Sample output:

Sample responses from Microsoft Word file and Jpeg image stored in ElasticWarehouse cluster:

ewshell.sh -c info 9IDaZMEPQEWMTdHwZ8rqMw --showmeta 1
curl -XGET "http://localhost:10200/_ewinfo?id=9IDaZMEPQEWMTdHwZ8rqMw"

ewshell.sh -c info THQBSsj8Tk-Qy-qL6CTSHA --showmeta 1
curl -XGET "http://localhost:10200/_ewinfo?id=THQBSsj8Tk-Qy-qL6CTSHA"

_ewupload
_ewget