Thanks, Grant. I resolved this issue by doing the following :
For each of my own metadata fields, it is also required to define the mapping between tika field and solr field, either in solrconfig.xml or while submitting the request for indexing. Also, got to make sure that lowernames = false, in case the field names defined in schema.xml are in mixed case or upper case. And this solved the issue for me. Thanks, Sandhya -----Original Message----- From: Grant Ingersoll [mailto:gsi...@gmail.com] On Behalf Of Grant Ingersoll Sent: Friday, April 30, 2010 4:15 PM To: solr-user@lucene.apache.org Subject: Re: Indexing metadata in solr using ContentStreamUpdateRequest What does your schema look like? On Apr 30, 2010, at 3:47 AM, Sandhya Agarwal wrote: > Hello, > > I am using ContentStreamUpdateRequest, to index binary documents. At the time > of indexing the content, I want to be able to index some additional metadata > as well. I believe, this metadata must be provided, prefixed with *literal*. > For instance, I have a field named “field1”, defined in schema.xml and to > index a document with a value for this field, I would provide > “literal.field1” = <value>. > > However, this does not seem to be working and the field defined in > schema.xml, *field1*, does not have any data indexed. > > How can I get this working ? > > Thanks in advance. > > Thanks, > Sandhya -------------------------- Grant Ingersoll http://www.lucidimagination.com/ Search the Lucene ecosystem using Solr/Lucene: http://www.lucidimagination.com/search