You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Licinio Fernández Maurelo <li...@gmail.com> on 2009/09/16 11:56:36 UTC
Mapping SolrDoc to SolrInputDoc
Hi there,
currently i'm working on a small app which creates an Embedded Solr Server,
reads all documents from one core and puts these docs into another one.
The purpose of this app is to apply (small) changes on schema.xml to indexed
data (offline) resulting a new index with documents updated to schema.xml
changes.
What i want to know is if there is an easy way to map SolrDoc to
SolrInputDoc.
Any help would be much appreciated
--
Lici
Re: Mapping SolrDoc to SolrInputDoc
Posted by Licinio Fernández Maurelo <li...@gmail.com>.
I'll try, thanks Martijn
2009/9/16 Martijn v Groningen <ma...@gmail.com>
> Hi Licinio,
>
> You can use ClientUtils.toSolrInputDocument(...), that converts a
> SolrDocument to a SolrInputDocument.
>
> Martijn
>
> 2009/9/16 Licinio Fernández Maurelo <li...@gmail.com>:
> > Hi there,
> >
> > currently i'm working on a small app which creates an Embedded Solr
> Server,
> > reads all documents from one core and puts these docs into another one.
> >
> > The purpose of this app is to apply (small) changes on schema.xml to
> indexed
> > data (offline) resulting a new index with documents updated to schema.xml
> > changes.
> >
> > What i want to know is if there is an easy way to map SolrDoc to
> > SolrInputDoc.
> >
> > Any help would be much appreciated
> >
> > --
> > Lici
> >
>
>
>
> --
> Met vriendelijke groet,
>
> Martijn van Groningen
>
--
Lici
Re: Mapping SolrDoc to SolrInputDoc
Posted by Martijn v Groningen <ma...@gmail.com>.
Hi Licinio,
You can use ClientUtils.toSolrInputDocument(...), that converts a
SolrDocument to a SolrInputDocument.
Martijn
2009/9/16 Licinio Fernández Maurelo <li...@gmail.com>:
> Hi there,
>
> currently i'm working on a small app which creates an Embedded Solr Server,
> reads all documents from one core and puts these docs into another one.
>
> The purpose of this app is to apply (small) changes on schema.xml to indexed
> data (offline) resulting a new index with documents updated to schema.xml
> changes.
>
> What i want to know is if there is an easy way to map SolrDoc to
> SolrInputDoc.
>
> Any help would be much appreciated
>
> --
> Lici
>
--
Met vriendelijke groet,
Martijn van Groningen