Hi all,
I've got a collection with filecopy type. I managed to make it work fine for a collection with multiple xml. However, I created another similar collection except that all xml are defined in one file.
I found in the documentation that this is possible using the configuration "document, path" in xml.cfg
PADRE XML Mapping Version: 2
# Define which element to split documents on
document,/people/person
# Indexed fields
T,1,,//title
However I'm getting this on the results page
<Results>
<Person>
<Title>
Em P|Dr|Dr|Miss|Prof|Mrs|Mr|Miss|Mr|Ms|Dr|Dr|Dr|Prof|Mr|Mr|Mr|Mr|Dr|Ms|Mrs|Dr|Mr|Ms|Miss|Mr|Dr|Mrs|Dr|Miss|Mr|Mr|Dr|Mrs|Dr|Miss|Mr|Dr|Dr|Dr|Dr|Miss|Mrs|Mr|Mrs|Miss|Dr|Mrs|Mr|Mr|Miss|Mrs|Dr|Dr|Prof|Mr|Miss|Mr|Dr|Dr|Miss|Dr|Mrs|Miss|Mr|Dr|Mrs|Dr|Ms|Prof|Dr|Miss|Mrs|Miss|Mrs|Dr|Dr|Mr|Mr|Mr|Mr|Miss|Miss|Miss|Prof|Dr|Dr|Dr|Miss|Mr|Dr|Mrs|Miss|Mr|Miss|Dr|Mr|Mrs|Mr|Prof|Ms|Mr|Miss|Mr|Mr|Mr|Mrs|Dr|Mrs|Dr|Mrs|Miss|Mr|Mr|Dr|Dr|Mrs|Mr|Mr|Mrs|Dr|Miss|Dr|Dr|Mrs|Mr|Prof|Mr|Dr|Mr|Mr|Miss|Miss|Miss|Dr|Miss|Dr|Mrs|Mr|Mr|Mr
</Title>
</Person>
</Results>
I want it to be be seperate <Title> element per result and not on just one element. Am I missing some configuration?
My result template looks like this
<#ftl encoding="utf-8" />
<#import "/web/templates/modernui/funnelback_classic.ftl" as s/>
<#import "/web/templates/modernui/funnelback.ftl" as fb/>
<#import "/web/templates/modernui/funnelback_classic.ftl" as s/>
<?xml version="1.0" encoding="UTF-8"?>
<Results>
<@s.Results>
<#if s.result.class.simpleName != "TierBar">
<Person>
<#if s.result.metaData["T"]??><Title>${s.result.metaData["T"]!?html}</Title></#if>
</Person>
</#if>
</@s.Results>
</Results>
Would really appreciate any help on this.
Cheers,
Joen