PhraseQuery* PhraseQuery_Deserialize_IMP(PhraseQuery *self, InStream *instream) { float boost = InStream_Read_F32(instream); String *field = Freezer_read_string(instream); Vector *terms = Freezer_read_varray(instream); return S_do_init(self, field, terms, boost); }
ProximityQuery* ProximityQuery_Deserialize_IMP(ProximityQuery *self, InStream *instream) { float boost = InStream_Read_F32(instream); String *field = Freezer_read_string(instream); VArray *terms = Freezer_read_varray(instream); uint32_t within = InStream_Read_C32(instream); return S_do_init(self, field, terms, boost, within); }
PhraseQuery* PhraseQuery_deserialize(PhraseQuery *self, InStream *instream) { float boost = InStream_Read_F32(instream); CharBuf *field = CB_deserialize(NULL, instream); VArray *terms = VA_deserialize(NULL, instream); self = self ? self : (PhraseQuery*)VTable_Make_Obj(PHRASEQUERY); return S_do_init(self, field, terms, boost); }
PhraseQuery* PhraseQuery_init(PhraseQuery *self, const CharBuf *field, VArray *terms) { return S_do_init(self, CB_Clone(field), VA_Clone(terms), 1.0f); }
PhraseQuery* PhraseQuery_init(PhraseQuery *self, String *field, Vector *terms) { return S_do_init(self, Str_Clone(field), Vec_Clone(terms), 1.0f); }
ProximityQuery* ProximityQuery_init(ProximityQuery *self, String *field, VArray *terms, uint32_t within) { return S_do_init(self, Str_Clone(field), VA_Clone(terms), 1.0f, within); }