Our purpose is to reuse the data stored in our indexes  serving  it to
multiple format clients (xml, php, json) directly (no mapper tier
wanted).

As clients model entities names doesn't match index field names, we
want to use alias in some way to adapt the response for the client.

Taking a look at solr wiki found this:

"This (CopyField) is provided as a convenient way to ensure that data
is put into several fields, without needing to include the data in the
update command multiple times"

i want to perform this behaviour in read-only mode (don't want to
duplicate data)

Thx


2009/8/18 Avlesh Singh <avl...@gmail.com>:
>>
>> solr bean tags didn't fully acomplish this issue in our project due to
>> model complexity
>>
> Did you try annotating your pojo in this manner?
> @Field("index_field_name)
> pojoPropertyName;
>
> It will be nice to set an alias for some fields to match the pojo.property
>> name. Don't know if there is an alternative (maybe copyfield?) to implement
>> this beahaviour
>>
> Though I am not sure what you want to achieve, yet a copyField is very
> similar to what you are asking for.
>
> Cheers
> Avlesh
>
> 2009/8/18 Licinio Fernández Maurelo <licinio.fernan...@gmail.com>
>
>> Currently we are trying to unmarshall objets from the index (solr bean
>> tags didn't fully acomplish this issue in our project due to model
>> complexity).
>> It will be nice to set an alias for some fields to match the pojo.property
>> name.
>> Don't know if there is an alternative (maybe copyfield?)  to implement
>> this beahaviour
>>
>> thanks
>>
>> 2009/8/18 Avlesh Singh <avl...@gmail.com>:
>> > What could possibly be a use case for such a need?
>> >
>> > Cheers
>> > Avlesh
>> >
>> > 2009/8/18 Licinio Fernández Maurelo <licinio.fernan...@gmail.com>
>> >
>> >> Hello everybody,
>> >>
>> >> can i set an alias for a field? Something like :
>> >>
>> >> <field name="sourceDate" type="uniqueIdType" indexed="true"
>> >> stored="true" multiValued="false" termVectors="false"
>> >> alias="source.date"/>
>> >>
>> >> is there any jira issue related?
>> >>
>> >> Thx
>> >>
>> >> --
>> >> Lici
>> >>
>> >
>>
>>
>>
>> --
>> Lici
>>
>



-- 
Lici

Reply via email to