Solr and the Ingesting of MP4 files

  • Updated

By default, Solr does not ingest MP4 files; additionally, when an MP4 asset is encountered during a crawl, Solr will throw an exception and the crawl will stop. The work around for this is to mark the MP4 assets as not searchable. 

Note: The below only applies to the 9.0 version of Ektron's Solr implementation. 

A  library can be added to Solr that includes the MP4 injester which will assist with the processing of some multimedia files. Use the steps below to add the file. 

  1. Go to http://www.java2s.com/Code/Jar/a/Downloadaspectjrt1611jar.htm.
  2. Locate the name aspectjrt/aspectjrt-1.6.11.jar.zip( 97 k) (located just above the header: Related examples in the same category
  3. Click on the link to download the file.
  4. Extract the file to the following location on the Solr Server (your location may differ): D:\Program Files (x86)\Ektron\Search2.0\Solr\libraries\contrib\extraction\lib
  5. Stop the Ektron Solr Process Manager 2.0.
  6. After all the Java processes stop, restart the Ektron Solr Process Manager 2.0 service.
  7. From the workarea, go to Settings, Configuration/Search/Node Status then launch a full crawl.

If MP4's do not need to be searchable you can also run a SQL query to make them unsearchable. 

update content
set searchable=0
where asset_id in
(select id
from assetdatatable
where mimetype like '%mp4%')