[Namazu-cvs 762] r250 - Search-Namazu/trunk/Search-Namazu

cvsd @ vaj.namazu.org cvsd @ vaj.namazu.org
2006年 3月 30日 (木) 15:29:15 JST


Author: knok
Date: 2006-03-30 15:29:14 +0900 (Thu, 30 Mar 2006)
New Revision: 250

Modified:
   Search-Namazu/trunk/Search-Namazu/ChangeLog
   Search-Namazu/trunk/Search-Namazu/Namazu.pm
Log:
Fixed constants.


Modified: Search-Namazu/trunk/Search-Namazu/ChangeLog
===================================================================
--- Search-Namazu/trunk/Search-Namazu/ChangeLog	2006-03-30 05:27:38 UTC (rev 249)
+++ Search-Namazu/trunk/Search-Namazu/ChangeLog	2006-03-30 06:29:14 UTC (rev 250)
@@ -1,6 +1,7 @@
 2006-03-30  NOKUBI Takatsugu  <knok @ daionet.gr.jp>
 
 	* Namazu.pm (Search): Added "sortField" method.
+	  Fixed constants.
 
 	* Namazu.xs (call_search_main): Fixed half of results bug.
 	  (Reported by Tadamasa Teranishi, thank you)

Modified: Search-Namazu/trunk/Search-Namazu/Namazu.pm
===================================================================
--- Search-Namazu/trunk/Search-Namazu/Namazu.pm	2006-03-30 05:27:38 UTC (rev 249)
+++ Search-Namazu/trunk/Search-Namazu/Namazu.pm	2006-03-30 06:29:14 UTC (rev 250)
@@ -244,11 +244,11 @@
 
 use Carp;
 
+sub NMZ_SORTBYSCORE { return 0; }
 sub NMZ_SORTBYDATE { return 1; }
-sub NMZ_SORTBYSCORE { return 2; }
-sub NMZ_SORTBYFIELD { return 3; }
-sub NMZ_ASCENDSORT { return 16; }
-sub NMZ_DESCENDSORT { return 32; }
+sub NMZ_SORTBYFIELD { return 2; }
+sub NMZ_ASCENDSORT { return 0; }
+sub NMZ_DESCENDSORT { return 1; }
 
 sub NMZ_NOT_SPECIFIED_INDEX { return -1; }
 sub NMZ_ERR_INDEX { return -2; }




Namazu-cvs メーリングリストの案内