You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by osymad <os...@gmail.com> on 2014/02/14 21:25:42 UTC

There is integration of spring-data-solr with tika?

There is some configuration to use spring-data-solr with tika? Otherwise some
alternative to solrj ContentStreamUpdateRequest+addfile for
spring-data-solr?

Currently I have another one using sorj + tika as:

*
SolrServer server = new HttpSolrServer(URL);
...
Tika tika = new Tika();
...
String fileType = tika.detect(path.toFile());
up = new ContentStreamUpdateRequest("/update/extract"); 
up.addFile(path.toFile(), fileType);
up.setParam("literal.id", idField);
...
up.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
NamedList request = server.request(up);*

Following the ExtractingRequestHandler guide with success.

Using solr 4.3.0

Is is possible get same result using only spring-data-solr instead solrj
directly?





--
View this message in context: http://lucene.472066.n3.nabble.com/There-is-integration-of-spring-data-solr-with-tika-tp4117478.html
Sent from the Solr - User mailing list archive at Nabble.com.