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 anass talby <an...@gmail.com> on 2011/05/23 15:40:42 UTC
Indexing documents with "complex multivalued fields"
Hi,
I'm new in solr and would like to index documents that have complex
multivalued fields. I do want to do something like:
<doc>
<id>1</id>
<car>
<car_id>1</car_id>
<car_color>red</car_color>
</car>
<car>
<car_id>2</car_id>
<car_color>green</car_color>
</car>
...
</doc>
...
How can i do this with solr
thanks in advance.
--
Anass
Re: Indexing documents with "complex multivalued fields"
Posted by anass talby <an...@gmail.com>.
Thank you very much
On Mon, May 23, 2011 at 4:27 PM, Stefan Matheis <
matheis.stefan@googlemail.com> wrote:
> Anass,
>
> what about combining them both into one? so to say:
> 1|red
> 2|green
>
> "synchronized" multivalued fields are not possible, afaik.
>
> Regards
> Stefan
>
> On Mon, May 23, 2011 at 3:40 PM, anass talby <an...@gmail.com>
> wrote:
> > Hi,
> >
> > I'm new in solr and would like to index documents that have complex
> > multivalued fields. I do want to do something like:
> >
> > <doc>
> > <id>1</id>
> > <car>
> > <car_id>1</car_id>
> > <car_color>red</car_color>
> > </car>
> > <car>
> > <car_id>2</car_id>
> > <car_color>green</car_color>
> > </car>
> > ...
> > </doc>
> > ...
> >
> >
> > How can i do this with solr
> >
> > thanks in advance.
> >
> > --
> > Anass
> >
>
--
Anass
Re: Indexing documents with "complex multivalued fields"
Posted by Stefan Matheis <ma...@googlemail.com>.
Anass,
what about combining them both into one? so to say:
1|red
2|green
"synchronized" multivalued fields are not possible, afaik.
Regards
Stefan
On Mon, May 23, 2011 at 3:40 PM, anass talby <an...@gmail.com> wrote:
> Hi,
>
> I'm new in solr and would like to index documents that have complex
> multivalued fields. I do want to do something like:
>
> <doc>
> <id>1</id>
> <car>
> <car_id>1</car_id>
> <car_color>red</car_color>
> </car>
> <car>
> <car_id>2</car_id>
> <car_color>green</car_color>
> </car>
> ...
> </doc>
> ...
>
>
> How can i do this with solr
>
> thanks in advance.
>
> --
> Anass
>
Re: Indexing documents with "complex multivalued fields"
Posted by anass talby <an...@gmail.com>.
Thank you Renaud.
I appreciate your help
On Mon, May 23, 2011 at 4:47 PM, Renaud Delbru <re...@deri.org>wrote:
> Hi,
>
> you could look at this recent thread [1], it is similar to your problem.
>
> [1]
> http://search.lucidimagination.com/search/document/33ec1a98d3f93217/search_across_related_correlated_multivalue_fields_in_solr#1f66876c782c78d5
> --
> Renaud Delbru
>
>
> On 23/05/11 14:40, anass talby wrote:
>
>> Hi,
>>
>> I'm new in solr and would like to index documents that have complex
>> multivalued fields. I do want to do something like:
>>
>> <doc>
>> <id>1</id>
>> <car>
>> <car_id>1</car_id>
>> <car_color>red</car_color>
>> </car>
>> <car>
>> <car_id>2</car_id>
>> <car_color>green</car_color>
>> </car>
>> ...
>> </doc>
>> ...
>>
>>
>> How can i do this with solr
>>
>> thanks in advance.
>>
>>
>
--
Anass
Re: Indexing documents with "complex multivalued fields"
Posted by Renaud Delbru <re...@deri.org>.
Hi,
you could look at this recent thread [1], it is similar to your problem.
[1]
http://search.lucidimagination.com/search/document/33ec1a98d3f93217/search_across_related_correlated_multivalue_fields_in_solr#1f66876c782c78d5
--
Renaud Delbru
On 23/05/11 14:40, anass talby wrote:
> Hi,
>
> I'm new in solr and would like to index documents that have complex
> multivalued fields. I do want to do something like:
>
> <doc>
> <id>1</id>
> <car>
> <car_id>1</car_id>
> <car_color>red</car_color>
> </car>
> <car>
> <car_id>2</car_id>
> <car_color>green</car_color>
> </car>
> ...
> </doc>
> ...
>
>
> How can i do this with solr
>
> thanks in advance.
>