PointType doc reindex issue

2012-10-10 Thread Ravi Solr
Hello, I have a weird problem, Whenever I read the doc from solr and then index the same doc that already exists in the index (aka reindexing) I get the following error. Can somebody tell me what I am doing wrong. I use solr 3.6 and the definition of the field is given below fieldType

Re: PointType doc reindex issue

2012-10-10 Thread Gopal Patwa
You need remove field after read solr doc, when u add new field it will add to list, so when u try to commit the update field, it will be multi value and in your schema it is single value On Oct 10, 2012 9:26 AM, Ravi Solr ravis...@gmail.com wrote: Hello, I have a weird problem,

Re: PointType doc reindex issue

2012-10-10 Thread Ravi Solr
Gopal I did in fact test the same and it worked when I delete ted the geolocation_0_coordinate and geolocation_1_coordinate. But that seems weird, so I was thinking if there is something else I need to do to avoid doing this awkward workaround. Ravi Kiran Bhaskar On Wed, Oct 10, 2012 at 12:36

Re: PointType doc reindex issue

2012-10-10 Thread Gopal Patwa
Instead addfield method use setfield On Oct 10, 2012 9:54 AM, Ravi Solr ravis...@gmail.com wrote: Gopal I did in fact test the same and it worked when I delete ted the geolocation_0_coordinate and geolocation_1_coordinate. But that seems weird, so I was thinking if there is something else I

Re: PointType doc reindex issue

2012-10-10 Thread Ravi Solr
I am using DirectXmlRequest to index XML. This is just a test case as my client would be sending me a SOLR compliant XML. so I was trying to simulate it by reading a doc from an exiting core and reindexing it. HttpSolrServer server = new

Re: PointType doc reindex issue

2012-10-10 Thread Chris Hostetter
: I have a weird problem, Whenever I read the doc from solr and : then index the same doc that already exists in the index (aka : reindexing) I get the following error. Can somebody tell me what I am : doing wrong. I use solr 3.6 and the definition of the field is given : below When you