Would appreciate any help on this. Thanks Rahul On Mon, Sep 14, 2009 at 5:12 PM, Rahul R <rahul.s...@gmail.com> wrote:
> Hello, > I have a few questions regarding the copyField directive in schema.xml > > 1. Does the destination field store a reference or the actual data ? > If I have soemthing like this > <copyField source="name" dest="text"/> > then will the values in the 'name' field get copied into the 'text' field > or will the 'text' field only store a reference to the 'name' field ? To put > it more simply, if I later delete the 'name' field from the index will I > lose the corresponding data in the 'text' field ? > > 2. Is there any inbuilt API which I can use to do the copyField action > programmatically ? > > 3. Can I do a copyfield from the schema as well as programmatically for the > same destination field > Suppose I want the 'text' field to contain values for name, age and > location. In my index only 'name' and 'age' are defined as fields. So I can > add directives like > <copyField source="name" dest="text"/> > <copyField source="age" dest="text"/> > The location however, I want to add it to the 'text' field > programmatically. I don't want to store the location as a separate field in > the index. Can I do this ? > > Thank you. > > Regards > Rahul >