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 "Jamal, Sarfaraz" <Sa...@VerizonWireless.com.INVALID> on 2016/06/01 21:43:03 UTC

RE: [E] Re: Simple Question about SimplePostTool

Thank you.

Sas

-----Original Message-----
From: Erik Hatcher [mailto:erik.hatcher@gmail.com] 
Sent: Wednesday, June 1, 2016 4:34 PM
To: solr-user@lucene.apache.org
Subject: [E] Re: Simple Question about SimplePostTool

Yes, you can add “literal” field values with bin/post:

   bin/post -c test ~/Documents/Test.pdf  -params "literal.foo=bar”

See https://cwiki.apache.org/confluence/display/solr/Uploading+Data+with+Solr+Cell+using+Apache+Tika#UploadingDatawithSolrCellusingApacheTika-InputParameters for details on what parameters you can use with “rich document” indexing.

—
Erik Hatcher, Senior Solutions Architect http://www.lucidworks.com



> On Jun 1, 2016, at 3:28 PM, Jamal, Sarfaraz <Sa...@VerizonWireless.com.INVALID> wrote:
> 
> Hi Guys,
> 
> I am a newbie at Solr, so I may have some very simple questions.
> I am also waiting for my book to arrive.
> 
> Can the SimplePostTool be used to add additional fields when indexing a word/excel/text.
> 
> So, for example, as I index a word document, I pass in a parameter 
> saying team=avengers
> 
> Or something along the lines of that -
> 
> Thank you,
> 
> Sas