On 03/03/2015 09:28, Marria wrote:
Hi Charlie,

Actualy, this is just a first step to get the text extracted from PDFs
in another txt file. I need to be able to copy the results of any query
executed on ElasticSearch in other external files too. I used jq to
select which field I want to copy in the external file but I didn't
succeed.

I used pdftotext to extract the text but my supervisor refused this
solution. He wants the elastic search results.

OK...although I don't really understand why your supervisor wants you to do this, the mapper attachment plugin seems to store both the source and the extracted text: https://groups.google.com/forum/#!topic/elasticsearch/lbK1-uHCthc

Another possibility would be to run Tika separately, index the text and store the original location of the file in an ES field, so you can refer back to it at query time. This would mean you don't have to store the whole PDF file in ES.


For your solution, can you please give me a direct link to the command
lines. I found this:

http://www.tutorialspoint.com/tika/tika_extracting_pdf.htm

http://tika.apache.org/1.7/gettingstarted.html is probably the best place to start as it's Tika's actual documentation.

Cheers

Charlie


is it what you meant?

Thanks a lot Charlie.

--
You received this message because you are subscribed to the Google
Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/72393f3b-29ff-4090-9ead-cd66cccbe454%40googlegroups.com
<https://groups.google.com/d/msgid/elasticsearch/72393f3b-29ff-4090-9ead-cd66cccbe454%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.


--
Charlie Hull
Flax - Open Source Enterprise Search

tel/fax: +44 (0)8700 118334
mobile:  +44 (0)7767 825828
web: www.flax.co.uk

--
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/54F58173.7060306%40flax.co.uk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to