Saïd, Dynamic fields could help here, for example imagine a doc with: id pic_url_* pic_caption_* pic_description_*
See http://wiki.apache.org/solr/SchemaXml#Dynamic_fields So, for you: <dynamicField name="pic_url_*" type="string" indexed="true" stored="true"/> <dynamicField name="pic_caption_*" type="text" indexed="true" stored="true"/> <dynamicField name="pic_description_*" type="text" indexed="true" stored="true"/> Then you can add docs with unlimited number of pic_(url|caption|description)_* fields, e.g. id pic_url_1 pic_caption_1 pic_description_1 id pic_url_2 pic_caption_2 pic_description_2 Otis ---- Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch Lucene ecosystem search :: http://search-lucene.com/ ----- Original Message ---- > From: Saïd Radhouani <r.steve....@gmail.com> > To: solr-user@lucene.apache.org > Sent: Fri, June 25, 2010 6:01:13 PM > Subject: Setting many properties for a multivalued field. Schema.xml ? > External file? > > Hi, I'm trying to index data containing a multivalued field "picture", > that has three properties: url, caption and description: <picture/> > <url/> > <caption/> <description/> Thus, each > indexed document might have many pictures, each of them has a url, a caption, > and a description. I wonder wether it's possible to store this data using > only schema.xml. I couldn't figure it out so far. Instead, I'm thinking of > using > an external file to sore the properties of each picture, but I haven't tried > yet > this solution, waiting for your suggestions... Thanks, -Saïd