lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Smiley (JIRA)" <>
Subject [jira] [Commented] (SOLR-9070) how to range search on the field which contains multiple decimal point (eg:
Date Thu, 05 May 2016 18:13:13 GMT


David Smiley commented on SOLR-9070:

The solution is to left-pad with 0's.  You said you did that... but did you leave the field
type as a string?  That should definitely work.  Next time for something like this, I suggest
using the solr-user mailing list to ask how to do something.

I think I'll just close this issue as "not a problem".  I started by changing the issue to
an improvement request but realistically I don't see it happening.  Of course if someone goes
ahead and does it then great.

> how to range search on the field which contains multiple decimal point (eg:
> ------------------------------------------------------------------------------------
>                 Key: SOLR-9070
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>          Components: search
>            Reporter: Santhosh
> Hi,
> I have issue in my server. As I stated in the subject I want to do range search query
on the field (eg: filed name is “version”) which contains value like (,
and etc).
> When I do range search on the “version” field with criteria [* TO], it gave
me all the value like (,, But this is wrong result. Since I was
expecting only and 
> But it include with the results. I googled and found that solr does lexical
sorting. But I want numerical sorting. I declared the field type as string in schema.xml.
> I did the following solution but nothing worked. 
> •	Converted the field type to number. But it gave me “NumberFormatException”. 
Because java does not allow multiple decimal point.
> •	I added left pad 0 with the value while adding document in solr. But no luck
> Can you please give me good solution to come out of the issue?

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message