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:24:10 GMT
   Date: 2004-05-11T19:24:10
   Editor: 69.240.50.229 <>
   Wiki: Jakarta Lucene Wiki
   Page: SearchNumericalFields
   URL: http://wiki.apache.org/jakarta-lucene/SearchNumericalFields

   no comment

Change Log:

------------------------------------------------------------------------------
@@ -67,11 +67,11 @@
 
   You can use a multiplier to make sure you don't have decimals if they cause problems.(comment
by sv)
 
- == Handling positive and negitive numbers. ==
+ == Handling positive and negative numbers. ==
  
- 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
+ If you want a numerical field that may contain positive and negative 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 "-200" is lexocographically
'''greater''' than "-1"
+   * when both are negative, 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