Solr Cell, alias ExtractingRequestHandler, utilise Apache Tika dans les coulisses, et ce dernier peut facilement être intégré dans un DataImportHandler:
<dataConfig>
<!-- use any of type DataSource<InputStream> -->
<dataSource type="BinURLDataSource"/>
<document>
<!-- The value of format can be text|xml|html|none. this is the format in which the body is emited (the 'text' field) . The implicit field 'text' will have that format.
default value is 'text' (if not specified) . format="none" means body is not emited-->
<entity processor="TikaEntityProcessor" tikaConfig="tikaconfig.xml" url="${some.var.goes.here}" format="text">
<!--Do appropriate mapping here meta="true" means it is a metadata field -->
<field column="Author" meta="true" name="author"/>
<field column="title" meta="true" name="docTitle"/>
<!--'text' is an implicit field emited by TikaEntityProcessor . Map it appropriately-->
<field column="text"/>
</entity>
<document>
</dataConfig>
Cette fonctionnalité a été implémentée dans SOLR-1358.
j'ai trouvé il y a quelques minutes, mais j'ai une erreur: GRAVE: importation complète a échoué: org.apache.solr.handler.dataimport.DataImportHandlerEx ception: Non dataSource: bin disponible pour l'entité: 94600730275216 Traitement Doc ument # 1 Je ne sais pas pourquoi. – bobosh
Mais j'ai configuré une source de données – bobosh
Votre question était "Est-ce possible?", Et c'est le cas. S'il vous plaît poser une question séparée. – opyate