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)));

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

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