MCPcopy Create free account
hub / github.com/echoface/be_indexer / AddConjunction

Method AddConjunction

document.go:58–63  ·  view source on GitHub ↗

AddConjunction 一组完整的expression, 必须是完整一个描述文档的DNF Bool表达的条件组合*/

(cons ...*Conjunction)

Source from the content-addressed store, hash-verified

56
57// AddConjunction 一组完整的expression, 必须是完整一个描述文档的DNF Bool表达的条件组合*/
58func (doc *Document) AddConjunction(cons ...*Conjunction) *Document {
59 for _, conj := range cons {
60 doc.Cons = append(doc.Cons, conj)
61 }
62 return doc
63}
64
65func (doc *Document) AddConjunctions(conj *Conjunction, others ...*Conjunction) *Document {
66 doc.Cons = append(doc.Cons, conj)

Callers 15

TestParseCacheFunction · 0.95
ToDocumentMethod · 0.95
TestBEIndex_Retrieve4Function · 0.95
TestBEIndex_Retrieve5Function · 0.95
TestDocument_PrepareFunction · 0.95
TestDocument_StringFunction · 0.95
mainFunction · 0.95
createTestIndexerFunction · 0.95
mainFunction · 0.95

Calls

no outgoing calls

Tested by 15

TestParseCacheFunction · 0.76
ToDocumentMethod · 0.76
TestBEIndex_Retrieve4Function · 0.76
TestBEIndex_Retrieve5Function · 0.76
TestDocument_PrepareFunction · 0.76
TestDocument_StringFunction · 0.76
TestBEIndex_Retrieve6Function · 0.76