예제 #1
0
ORScorer*
ORScorer_init(ORScorer *self, VArray *children, Similarity *sim) {
    S_ormatcher_init2((ORMatcher*)self, children, sim);
    self->doc_id = 0;
    self->scores = (float*)MALLOCATE(self->num_kids * sizeof(float));

    // Establish the state of all child matchers being past the current doc
    // id, by invoking ORMatcher's Next() method.
    ORMatcher_next((ORMatcher*)self);

    return self;
}
예제 #2
0
파일: ORMatcher.c 프로젝트: apache/lucy
ORScorer*
ORScorer_init(ORScorer *self, Vector *children, Similarity *sim) {
    ORScorerIVARS *const ivars = ORScorer_IVARS(self);
    S_ormatcher_init2((ORMatcher*)self, (ORMatcherIVARS*)ivars, children, sim);
    ivars->doc_id = 0;
    ivars->scores = (float*)MALLOCATE(ivars->num_kids * sizeof(float));

    // Establish the state of all child matchers being past the current doc
    // id, by invoking ORMatcher's Next() method.
    ORMatcher_Next_IMP((ORMatcher*)self);

    return self;
}
예제 #3
0
파일: ORMatcher.c 프로젝트: apache/lucy
ORMatcher*
ORMatcher_init(ORMatcher *self, Vector *children) {
    ORMatcherIVARS *const ivars = ORMatcher_IVARS(self);
    return S_ormatcher_init2(self, ivars, children, NULL);
}
예제 #4
0
ORMatcher*
ORMatcher_init(ORMatcher *self, VArray *children) {
    return S_ormatcher_init2(self, children, NULL);
}