lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Angel Ice <>
Subject Re : Using SolrJ with Tika
Date Thu, 03 Sep 2009 13:47:56 GMT

This is the solution I was testing.
I got some difficulties with AutoDetectParser but I think it's the solution I will use in
the end.

Thanks for the advice anyway :)



De : Abdullah Shaikh <>
À :
Envoyé le : Jeudi, 3 Septembre 2009, 14h31mn 10s
Objet : Re: Using SolrJ with Tika

Hi Laurent,

I am not sure if this is what you need, but you can extract the content from
the uploaded document (MS Docs, PDF etc) using TIKA and then send it to SOLR
for indexing.

String CONTENT = extract the content using TIKA (you can use

and then,

SolrInputDocument doc = new SolrInputDocument();
doc.addField("DOC_CONTENT", CONTENT);


On Wed, Sep 2, 2009 at 5:26 PM, Angel Ice <> wrote:

> Hi everybody.
> I hope it's the right place for questions, if not sorry.
> I'm trying to index rich documents (PDF, MS docs etc) in SolR/Lucene.
> I have seen a few examples explaining how to use tika to solve this. But
> most of these examples are using curl to send documents to Solr or an HTML
> POST with an input file.
> But i'd like to do it in full java.
> Is there a way to use Solrj to index the documents with the
> ExtractingRequestHandler of SolR or at least to get the extracted xml back
> (with the extract.only option) ?
> Many thanks.
> Laurent.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message