lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jlark <alpti...@hotmail.com>
Subject RE: 400 Error adding field 'tags'='[a,b,c]'
Date Sun, 01 Apr 2012 00:33:35 GMT

[Solved]

Turns out the text field I was copying all these to was not multivalued!
make sure that if you're copying multiple fields to a single field that the single field has
multivalued=true.

phew.
Thanks for the Help.
Date: Thu, 15 Mar 2012 03:19:15 -0700
From: ml-node+s472066n3828342h74@n3.nabble.com
To: alptilev@hotmail.com
Subject: Re: 400 Error adding field 'tags'='[a,b,c]'



	Hi Alp,


if you have not changed how SOLR logs in general, you should find the

log output in the regular server logfile. For Tomcat you can find this

in TOMCAT_HOME/catalina.out (or search for that name).


If there is a problem with your schema, SOLR should be complaining about

it during application/server start up. It would definitely print

something if there is a field declared in your schema but cannot be

initialized for some reason.


I don't think that the names of the fields themselves are the problem. I

never had an issue with the field name 'name'.


Cheers,

Chantal



On Wed, 2012-03-14 at 02:53 +0100, jlark wrote:

> Interestingly I'm getting this on other fields now.

> 

> I have the field    <field name="name" type="text_general" indexed="true"

> stored="true"  />

> 

> which is copied to text  <copyField source="name" dest="text"/>

> 

> and my text field is simply    <field name="text" type="text_general"

> indexed="true" stored="true" />

> 

> I'm feedin my test document

> 

> {"url" : "TestDoc2", "title" : "another test", "ptag":["a","b"],"name":"foo

> bar"},

> 

> and when I try to feed I get.

> 

> HTTP request sent, awaiting response... 400 ERROR: [doc=TestDoc2] Error

> adding field 'name'='foo bar'

> 

> If I remove the field from the document though it works fine.

> I'm wondering if there is a set of reserved names that I'm using at this

> point.

> 

> Jus twhish there was a way to get more helpfull error messages.

> 

> Thanks for the help.

> Alp

> 

> 

> 

> --

> View this message in context: http://lucene.472066.n3.nabble.com/400-Error-adding-field-tags-a-b-c-tp3823853p3824126.html
> Sent from the Solr - User mailing list archive at Nabble.com.


	
	

	

	
	
		If you reply to this email, your message will be added to the discussion below:
		http://lucene.472066.n3.nabble.com/400-Error-adding-field-tags-a-b-c-tp3823853p3828342.html
	
	
		
		To unsubscribe from 400 Error adding field 'tags'='[a,b,c]', click here.

		NAML
	 		 	   		  

--
View this message in context: http://lucene.472066.n3.nabble.com/400-Error-adding-field-tags-a-b-c-tp3823853p3874445.html
Sent from the Solr - User mailing list archive at Nabble.com.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message