I didn't realize that copyField are implemented via multivalue, I
thought they were flat field.

What I was trying to do was to have one common field between two
different schema, so that my GUI could use both index source for
listing by title...

I guess I will populate this field manually from my data importer script.

Cheers,

/jonathan

On Tue, Sep 18, 2012 at 1:35 PM, Jonatan Fournier
<jonatan.fourn...@gmail.com> wrote:
> Hi,
>
> I have something strange happening (4.0-BETA), I have a title field:
>
> <field name="title" type="string" indexed="false" stored="true"
> omitNorms="true"/>
>
> And a copyField:
>
> <copyField source="foo" dest="title"/>
>
> Note that I don't have multivalue set for the title field, but I do
> end up with multiple value in my field:
>
> {
>   "responseHeader":{
>     "status":0,
>     "QTime":371,
>     "params":{
>       "indent":"true",
>       "wt":"json",
>       "q":"domain:dyslexia-test.com"}},
>   "response":{"numFound":1,"start":0,"maxScore":13.414578,"docs":[
>       {
>         "id":"9f13185f8134ff75cb1c6106ac5db63f",
>         "foo":"bar",
>         "title":["bar",
>           "bar"],
> ...
> }
>
> I made two operations on that document.
>
> First I created it by populating some of its fields, and in a second
> pass, I queried the document via "id" add other values to the
> un-populated fields and send the document back.
>
> Why is there more than one value for title? At worst should the 2nd
> operation overwrites the original value?
>
> Cheers,
>
> /jonathan

Reply via email to