Binary file indexing

(sankar panda) #1

Can we indexing the binary file through elastic which is not having any extension ?

(Christian Dahlqvist) #2

You will need to convert it into JSON somehow. Elasticsearch does not index binary files.

(sankar panda) #3

Thank you Christian. i thought by using the ingest-attachment we can do that?

(Christian Dahlqvist) #4

That is indeed used to extract data from binary files, but as I am not familiar with it I will leave that to someone else.

(David Pilato) #5

Yes. All what Christian said.

(sankar panda) #6

Thanks dadoonet. But how we can indexing the binary files means what content type i need to use,could you please pass to me if you have any sudo code which will read the binary files.

(David Pilato) #7

Did you read the documentation about the plugin?

Otherwise you can also give a try at FSCrawler project which exposes also a REST interface. It's like a proxy to elasticsearch for indexing binary files.