lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From osymad <osy...@gmail.com>
Subject There is integration of spring-data-solr with tika?
Date Fri, 14 Feb 2014 20:25:42 GMT
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.

Mime
View raw message