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 "Siebor, Wlodek [USA]" <si...@bah.com> on 2010/12/13 17:01:43 UTC
Indexing pdf files - question.
HI,
Can sombody, please, send me a command for indexing a sample pdf with ExtractngRequestHandler file available in the /docs directory. I have lucidworks solr installed on linux, with standard schema.xml and solrconfig.xml files (unchanged). I want to pass as the unique id the name of the file.
I’m trying various curl commands and so far I have either “… missing required field: id” or “.. missing content stream” errors.
Thanks for your help,
Wlodek
Re: Indexing pdf files - question.
Posted by Mike <sa...@gmail.com>.
Hi Erick,
Thank you for the Reply.
Now I am able to index the PDF files and search.
I am left with couple of questions:
1. Can I add custom field to Search Response XML (Ex: Need to as description
which gives brief description about the PDF file).
2. Currently Solr runs as a separate application. Can I run solr in the same
application server(Tomcat6) in which my actual application resides.
Thanks,
Mike
--
View this message in context: http://lucene.472066.n3.nabble.com/Indexing-pdf-files-question-tp2079505p2794841.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Indexing pdf files - question.
Posted by Erick Erickson <er...@gmail.com>.
Did you try the curl commands that Adam suggested as part of this e-mail
thread?
If so, what happened?
Best
Erick
On Wed, Apr 6, 2011 at 7:50 AM, Mike <sa...@gmail.com> wrote:
> Hi All,
>
> I am new to solr. I have gone through solr documents to index pdf files,
> But
> it was hard to find the exact procedure to get started.
> I need step by step procedure to do this. Could you please let me know the
> steps to index pdf files.
>
> Thanks,
> Mike
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Indexing-pdf-files-question-tp2079505p2784645.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
Re: Indexing pdf files - question.
Posted by Mike <sa...@gmail.com>.
Hi All,
I am new to solr. I have gone through solr documents to index pdf files, But
it was hard to find the exact procedure to get started.
I need step by step procedure to do this. Could you please let me know the
steps to index pdf files.
Thanks,
Mike
--
View this message in context: http://lucene.472066.n3.nabble.com/Indexing-pdf-files-question-tp2079505p2784645.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Indexing pdf files - question.
Posted by Wodek Siebor <si...@bah.com>.
The sample /docs/tutorial.pdf does not require OCR.
--
View this message in context: http://lucene.472066.n3.nabble.com/Indexing-pdf-files-question-tp2079505p2080307.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Indexing pdf files - question.
Posted by Adam Estrada <es...@gmail.com>.
Hi,
I use the following command to post PDF files.
$ curl "http://localhost:8983/solr/update/extract?stream.file=C
:\temp\document.docx&stream.contentType=application/msword&literal.id
=esc.doc&commit=true"
$ curl "http://localhost:8983/solr/update/extract?stream.file=C
:\temp\features.pdf&stream.contentType=application/pdf&literal.id
=esc2.doc&commit=true"
$ curl "http://localhost:8983/solr/update/extract?stream.file=C
:\temp\Memo_ocrd.pdf&stream.contentType=application/pdf&literal.id
=Memo_ocrd.pdf&defaultField=text&commit=true"
The PDF's have to be OCR'd.
Adam
On Mon, Dec 13, 2010 at 11:01 AM, Siebor, Wlodek [USA] <
siebor_wlodek@bah.com> wrote:
> HI,
> Can sombody, please, send me a command for indexing a sample pdf with
> ExtractngRequestHandler file available in the /docs directory. I have
> lucidworks solr installed on linux, with standard schema.xml and
> solrconfig.xml files (unchanged). I want to pass as the unique id the name
> of the file.
> I’m trying various curl commands and so far I have either “… missing
> required field: id” or “.. missing content stream” errors.
> Thanks for your help,
> Wlodek
>