Really? Doesn't it have to be delimited differently, if both the file contents and the document metadata will be part of the POST data? How does Solr Cell tell the difference between the literals and the start of the file? I've tried this before and haven't had any luck with it.
-----Original Message----- From: Shalin Shekhar Mangar [mailto:shalinman...@gmail.com] Sent: Monday, January 04, 2010 4:28 AM To: solr-user@lucene.apache.org Subject: Re: Solr Cell - PDFs plus literal metadata - GET or POST ? On Wed, Dec 30, 2009 at 7:49 AM, Ross <tetr...@gmail.com> wrote: > Hi all > > I'm experimenting with Solr. I've successfully indexed some PDFs and > all looks good but now I want to index some PDFs with metadata pulled > from another source. I see this example in the docs. > > curl " > http://localhost:8983/solr/update/extract?literal.id=doc4&captureAttr=true&defaultField=text&capture=div&fmap.div=foo_t&boost.foo_t=3&literal.blah_s=Bah > " > -F "tutori...@tutorial.pdf" > > I can write code to generate a script with those commands substituting > my own literal.whatever. My metadata could be up to a couple of KB in > size. Is there a way of making the literal a POST variable rather than > a GET? With Curl? Yes, see the man page. > Will Solr Cell accept it as a POST? Yes, it will. -- Regards, Shalin Shekhar Mangar.