Hi all,

I am brand new with Solr and i have a pretty big problem to solve.

I need to index some e-mails (from Dovecot) and their attachments. The
index's structure i was thinking is:

Note: Only the last 2 fields are relevant to this problem.

<fields>
   <field name="id" type="string" indexed="true" stored="true"
required="true" />
   <field name="uid" type="slong" indexed="true" stored="true"
required="true" />
   <field name="uidv" type="long" indexed="true" stored="true"
required="true" />
   <field name="box" type="string" indexed="true" stored="true"
required="true" />
   <field name="user" type="string" indexed="true" stored="true"
required="true" />
   <field name="ns" type="string" indexed="true" stored="true"
required="false" />
   <field name="last_uid" type="boolean" indexed="true" stored="false" />
   <field name="hdr" type="text" indexed="true" stored="false" />
   <field name="body" type="text" indexed="true" stored="false" />
   <field name="any" type="text" indexed="true" stored="false"
multiValued="true" />
   <dynamicField name="attachName_*" type="string" indexed="true"
stored="true" required="false" />
   <dynamicField name="attachBody_*" type="attachment" indexed="true"
stored="true" required="false" />
 </fields>

With this structure i think (correct me if i am wrong) i cant search for all
attachBody_* and know where the match was (attachBody_1, _2, _3, etc).

I really don't know if this is the best approach so any help would be
appreciated.

Regards,
Rui Carneiro

Reply via email to