Mailing List Archive

r3740 - in trunk/c_src/KinoSearch: . Index
Author: creamyg
Date: 2008-08-19 13:38:48 -0700 (Tue, 19 Aug 2008)
New Revision: 3740

Modified:
trunk/c_src/KinoSearch/Index/SegInfo.bp
trunk/c_src/KinoSearch/Schema.bp
Log:
Update documentation for SegInfo_Field_Num() and Schema_Field_Num().


Modified: trunk/c_src/KinoSearch/Index/SegInfo.bp
===================================================================
--- trunk/c_src/KinoSearch/Index/SegInfo.bp 2008-08-19 20:22:51 UTC (rev 3739)
+++ trunk/c_src/KinoSearch/Index/SegInfo.bp 2008-08-19 20:38:48 UTC (rev 3740)
@@ -64,7 +64,8 @@

/** Given a field name, return its field number for this segment (which
* may differ from the number returned by other segments or by the
- * Schema). Return -1 if the field name can't be found.
+ * Schema). Return 0 (an invalid field number) if the field name can't be
+ * found.
*/
i32_t
Field_Num(SegInfo *self, const CharBuf *field_name);

Modified: trunk/c_src/KinoSearch/Schema.bp
===================================================================
--- trunk/c_src/KinoSearch/Schema.bp 2008-08-19 20:22:51 UTC (rev 3739)
+++ trunk/c_src/KinoSearch/Schema.bp 2008-08-19 20:38:48 UTC (rev 3740)
@@ -72,9 +72,9 @@
u32_t
Num_Fields(Schema *self);

- /** Given a field name, return its field number for this segment (which may
- * differ from the number returned by indivindual SegInfo objects).
- * Return -1 if the field name can't be found.
+ /** Given a field name, return its field number for this segment (which
+ * may differ from the number returned by indivindual SegInfo objects).
+ * Return 0 if the field name can't be found.
*/
i32_t
Field_Num(Schema *self, const CharBuf *field_name);


_______________________________________________
kinosearch-commits mailing list
kinosearch-commits@rectangular.com
http://www.rectangular.com/mailman/listinfo/kinosearch-commits