Re: Stats field with decimal values
Could you clue us in as to why this is important to you? I mean, any modern programming language should be capable of dealing with parsing 1.0 if it can deal with parsing 1.00. -- Jack Krupansky -Original Message- From: Gustav Sent: Monday, September 17, 2012 9:19 AM To: solr-user@lucene.apache.org Subject: Stats field with decimal values Hello everyone, When im using stats=truestats=product_price parameter, it returns me the following structure: lst name=stats lst name=stats_fields lst name=produto_preco double name=min1.0/double double name=max1.0/double long name=count7/long long name=missing0/long double name=sum7.0/double double name=sumOfSquares7.0/double double name=mean1.0/double double name=stddev0.0/double /lst /lst /lst What im looking for is these 2: double name=min1.0/double double name=max1.0/double Is it possible to them be returned as decimal values? Like this: double name=min1.00/double double name=max1.00/double Tnks! -- View this message in context: http://lucene.472066.n3.nabble.com/Stats-field-with-decimal-values-tp4008292.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Stats field with decimal values
Well, my client is asking if is it possible, im just providing the search enginne to him, not working directly with the application. Dont know exactly in what language he is programming. -- View this message in context: http://lucene.472066.n3.nabble.com/Stats-field-with-decimal-values-tp4008292p4008395.html Sent from the Solr - User mailing list archive at Nabble.com.
RE: Stats field with decimal values
You can use an XSL response writer to transform your values to have a different precision. http://wiki.apache.org/solr/XsltResponseWriter Would most likely be better for your client to just do it on his end though. He is probably parsing the response anyway. -Original Message- From: Gustav [mailto:xbihy...@sharklasers.com] Sent: Monday, September 17, 2012 1:10 PM To: solr-user@lucene.apache.org Subject: Re: Stats field with decimal values Well, my client is asking if is it possible, im just providing the search enginne to him, not working directly with the application. Dont know exactly in what language he is programming. -- View this message in context: http://lucene.472066.n3.nabble.com/Stats-field-with-decimal-values-tp4008292p4008395.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Stats field with decimal values
On Fri, May 1, 2009 at 12:27 AM, Nasseam Elkarra nass...@bodukai.comwrote: Hello, I'm getting an error when trying to create stats on an sfloat field. The field is for price and when there is no decimal it works fine but when there is a decimal (e.g., 24.99) I get an error: java.lang.StringIndexOutOfBoundsException: String index out of range: 2 Can you post the complete stack trace? -- Regards, Shalin Shekhar Mangar.