lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tacno <renatocass...@gmail.com>
Subject How can I index a "dictionary"?
Date Mon, 02 Mar 2015 19:02:40 GMT
Hello guys.

I'm indexing any fields in solr without any problems.
Ex:

<doc>
<field name="identifier">http://192.168.1.27:8000/event/xml/2/solr</field>
<field name="pk_i">2</field>
<field name="title">Title</field>
<field name="type">text</field>
<field name="created">2015-03-02T15:53:01.435232Z</field>
<field name="creator">user that create</field>
........
</doc>

But now, i have pictures in this data, and I want to put an "array" of
fields with different values.

Example:

<photos>
<element>
<field name="path_s">http://localhost:8000/images/first_file.jpg</field>
<field name="caption_pt">Minha foto</field>
<field name="caption_en">My Picture</field>
</element>
<element>
<field name="path_s">http://localhost:8000/images/second_file.png</field>
<field name="caption_pt">Minha foto</field>
<field name="caption_en">My Picture</field>
</element>
......
</photos>

But this doesn't insert in my solr. How can I do to index this data?

Thanks!!



--
View this message in context: http://lucene.472066.n3.nabble.com/How-can-I-index-a-dictionary-tp4190433.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message