You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2015/07/20 21:53:00 UTC

[2/2] lucy git commit: Add missing constructor for PolySearcher.

Add missing constructor for PolySearcher.


Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/a4d556b2
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/a4d556b2
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/a4d556b2

Branch: refs/heads/master
Commit: a4d556b2c57629972b3a28674639e2c5dc047ab1
Parents: bb94960
Author: Marvin Humphrey <ma...@rectangular.com>
Authored: Mon Jul 20 12:52:12 2015 -0700
Committer: Marvin Humphrey <ma...@rectangular.com>
Committed: Mon Jul 20 12:52:12 2015 -0700

----------------------------------------------------------------------
 core/Lucy/Search/PolySearcher.c | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/a4d556b2/core/Lucy/Search/PolySearcher.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Search/PolySearcher.c b/core/Lucy/Search/PolySearcher.c
index 69a1f99..79f1831 100644
--- a/core/Lucy/Search/PolySearcher.c
+++ b/core/Lucy/Search/PolySearcher.c
@@ -34,6 +34,12 @@
 #include "Lucy/Search/Compiler.h"
 
 PolySearcher*
+PolySearcher_new(Schema *schema, Vector *searchers) {
+    PolySearcher *self = (PolySearcher*)Class_Make_Obj(POLYSEARCHER);
+    return PolySearcher_init(self, schema, searchers);
+}
+
+PolySearcher*
 PolySearcher_init(PolySearcher *self, Schema *schema, Vector *searchers) {
     const uint32_t num_searchers = Vec_Get_Size(searchers);
     int32_t *starts_array = (int32_t*)MALLOCATE(num_searchers * sizeof(int32_t));