lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lucene-...@jakarta.apache.org
Subject [Jakarta Lucene Wiki] Updated: SearchNumericalFields
Date Wed, 12 May 2004 02:20:02 GMT
   Date: 2004-05-11T19:20:02
   Editor: 150.101.152.16 <>
   Wiki: Jakarta Lucene Wiki
   Page: SearchNumericalFields
   URL: http://wiki.apache.org/jakarta-lucene/SearchNumericalFields

   no comment

Change Log:

------------------------------------------------------------------------------
@@ -71,7 +71,7 @@
  
  If you want a numerical field that may contain positive and negitive numbers, you still
need to format them as strings. What you must ensure is that for any numbers a and b, if a<b
then format(a)<format(b). The problem cases are
    * when one number is negative and the other is positve
-   * when both are negitive, ie; -200 is less than -1, even though "-100" is lexocographically
'''greater''' than "-2"
+   * when both are negitive, ie; -200 is less than -1, even though "-200" is lexocographically
'''greater''' than "-1"
  
  The "trick" to handle these problems are:
    * use a prefix char for positive and negative numbers so that a negative string is always
less than positive. '-' and '0' are suitable for this

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message