[
https://issues.apache.org/jira/browse/SOLR-671?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12619223#action_12619223
]
funtick edited comment on SOLR-671 at 8/2/08 7:12 AM:
----------------------------------------------------------
Here is test case, similar to Arrays.sort() bug (unsigned...):
{code}
long time1 = System.currentTimeMillis();
long time2 = 30*24*3600*1000;
System.out.println(time1);
System.out.println(time1-time2);
Output:
1219389000674
1221091967970
{code}
(time1-time2) > time1!
What happens inside SOLR slong for such queries?
was (Author: funtick):
Here is test case, similar to Arrays.sort() bug (unsigned...):
{code}
long time1 = System.currentTimeMillis() - 30*24*3600*1000;
long time2 = 30*24*3600*1000;
System.out.println(time1);
System.out.println(time1-time2);
Output:
1219389000674
1221091967970
{code}
(time1-time2) > time1!
What happens inside SOLR slong for such queries?
> Range queries with 'slong' field type do not retrieve correct results
> ---------------------------------------------------------------------
>
> Key: SOLR-671
> URL: https://issues.apache.org/jira/browse/SOLR-671
> Project: Solr
> Issue Type: Bug
> Affects Versions: 1.3
> Environment: SOLR-1.3-DEV
> Schema:
> <!-- Numeric field types that manipulate the value into
> a string value that isn't human-readable in its internal form,
> but with a lexicographic ordering the same as the numeric ordering,
> so that range queries work correctly. -->
> <fieldType name="sint" class="solr.SortableIntField"
> sortMissingLast="true" omitNorms="true"/>
> <fieldType name="slong" class="solr.SortableLongField"
> sortMissingLast="true" omitNorms="true"/>
> <fieldType name="sfloat" class="solr.SortableFloatField"
> sortMissingLast="true" omitNorms="true"/>
> <fieldType name="sdouble" class="solr.SortableDoubleField"
> sortMissingLast="true" omitNorms="true"/>
> <field name="timestamp" type="slong" indexed="true" stored="true"/>
> Reporter: Fuad Efendi
> Original Estimate: 168h
> Remaining Estimate: 168h
>
> Range queries always return all results (do not filter):
> timestamp:[1019386401114 TO 1219386401114]
> <lst name="debug">
> <str name="rawquerystring">timestamp:[1019386401114 TO 1219386401114]</str>
> <str name="querystring">timestamp:[1019386401114 TO 1219386401114]</str>
> <str name="parsedquery">timestamp:[1019386401114 TO 1219386401114]</str>
> <str name="parsedquery_toString">timestamp:[#8;#0;εごᅚ TO #8;#0;ѯ刯慚]</str>
> ...
> <str name="QParser">OldLuceneQParser</str>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.