lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Rosher <rosh...@gmail.com>
Subject Re: Additional field informations?
Date Tue, 20 Nov 2012 15:48:37 GMT
Hi,

Have a look at DocTransformers

 http://wiki.apache.org/solr/DocTransformers and ExplainAugmenterFactory as
an example

Cheers,
Dan

On Tue, Nov 20, 2012 at 3:08 PM, Sebastian Hofmann <hofmann.s@uni-jena.de>wrote:

> Hello all,
> We import xml documents to solr with solrj. We use xsl to proccess the
> "objects" to fields.
> We got the language informations in our "objects".
> After xsl out Documents look like this:
> <add>
>     <doc>
>         ...
>         <field name="title">german title</title>
>         <field name="title">english title</title>
>         <field name="title">french title</title>
>         ...
>     </doc>
> </add>
>
>
> Our schema.xml looks like this. (we use it as a filter too..)
> ...
> <field name="title" type="string" indexed="true" stored="true"
> multiValued="true" />
> ...
>
> Our results look like this. (we want to transform it directly to html with
> xsl)
> <arr name="title">
> <str>german title</str>
> <str>english title</str>
> <str>french title</str>
> </arr>
>
> Is there any possibillity to get a result like this:
> <arr name="title">
>     <str lang="de">german title</str>
>     <str lang="en">english title</str>
>     <str lang="fr">german title</str>
> </arr>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message