Re: WebException (ServerProtocolViolation) with SolrSharp

2007-10-11 Thread Jeff Rodenburg
Good to know, I think this needs to be a configurable value in the library (overridable, at a minimum.) What's outstanding for me on this is understanding the Solr side of the equation, and whether culture variance comes into play. What makes this even more interesting/confusing is how culture sc

Re: WebException (ServerProtocolViolation) with SolrSharp

2007-10-11 Thread Filipe Correia
Jeff, Thanks! Your suggestion worked, instead of invoking ToString() on float values I've used ToString's other signature, which takes a an IFormatProvider: CultureInfo MyCulture = CultureInfo.InvariantCulture; this.Add(new IndexFieldValue("weight", weight.ToString(MyCulture.NumberFormat))); this

Re: WebException (ServerProtocolViolation) with SolrSharp

2007-10-10 Thread Jeff Rodenburg
Hi Felipe - The issue you're encountering is a problem with the data format being passed to the solr server. If you follow the stack trace that you posted, you'll notice that the solr field is looking for a value that's a float, but the passed value is "1,234". I'm guessing this is caused by one

WebException (ServerProtocolViolation) with SolrSharp

2007-10-10 Thread Filipe Correia
Hello, I am trying to run SolrSharp's example application but am getting a WebException with a ServerProtocolViolation status message. After some debugging I found out this is happening with a call to: http://localhost:8080/solr/update/ And using fiddler[1] found out that solr is actually throwi

WebException (ServerProtocolViolation) with SolrSharp

2007-10-10 Thread Filipe Correia
Hello, I am trying to run SolrSharp's example application but am getting a WebException with a ServerProtocolViolation status message. After some debugging I found out this is happening with a call to: http://localhost:8080/solr/update/ And using fiddler[1] found out that solr is actually throwi