[ https://issues.apache.org/jira/browse/SOLR-1645?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexandre Rafalovitch closed SOLR-1645. --------------------------------------- Resolution: Implemented The example files in latest (6.x) Solr demonstrates how to do such mapping using Scripting URP. This should be sufficient for those interested. > Add human content-type > ---------------------- > > Key: SOLR-1645 > URL: https://issues.apache.org/jira/browse/SOLR-1645 > Project: Solr > Issue Type: Improvement > Components: contrib - Solr Cell (Tika extraction) > Affects Versions: 1.4 > Reporter: Khalid Yagoubi > Fix For: 6.0, 4.9 > > > Idea is to allow Solr-Cell to "calculate" the human content-type from the > extracted content-type and map it to a field in the schema. > So the user can search on "media: image" or "media:video" > Idea : > 1) Hardcode a hashmap in somewhere in extraction classes and get human > content-type from extracted content-type. I Think to SolrContentHandler.java > 2) Write an xml file where we can put a mapping like in tika-config.xml for > parsers > 3) Use tika-config.xml to get all supported mime-types -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org