[opencms-dev] Store nested field value in Solr index

Paul-Inge Flakstad flakstad at npolar.no
Fri Nov 9 13:03:37 CET 2012


Hi Siegfried,

Not really an answer your question, but you should be able to use OpenCmsVarLink as the type for this element (= no need to use a nested element).

Cheers,
Paul

-----Original Message-----
From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Siegfried Ehret
Sent: 8. november 2012 16:40
To: opencms-dev at opencms.org
Subject: [opencms-dev] Store nested field value in Solr index

Hi,
I have a news content, with an Attachment which may be a vfs resource (OpenCmsVfsFile) or an url (OpenCmsString). So I made a nested xsd for my attachment.
(I'm storing it to get it fastly through the search result list without having to use a contentload)

In my xsd, I have the following declaration:
<searchsetting element="Attachment" searchcontent="false">
  <solrfield targetfield="Attachment" /> </searchsetting>

But it's not stored in the index.
If I remove the nested and only set an Attachment with an OpenCmsVfsFile type, it is stored.

Can I store a nested element ?

Thanks.
--
Siegfried Ehret
_______________________________________________
This mail is sent to you from the opencms-dev mailing list To change your list options, or to unsubscribe from the list, please visit http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev






More information about the opencms-dev mailing list