0
0
Fork 0

add test for one member of conjunction no matches

This commit is contained in:
Marty Schoch 2014-04-24 10:35:50 -06:00
parent aa53d0b340
commit 55644a695d
1 changed files with 21 additions and 0 deletions

View File

@ -73,6 +73,27 @@ func TestTermConjunctionSearch(t *testing.T) {
},
},
},
{
index: twoDocIndex,
query: &TermConjunctionQuery{
Terms: []Query{
&TermQuery{
Term: "beer",
Field: "desc",
BoostVal: 1.0,
Explain: true,
},
&TermQuery{
Term: "jack",
Field: "name",
BoostVal: 5.0,
Explain: true,
},
},
Explain: true,
},
results: []*DocumentMatch{},
},
}
for testIndex, test := range tests {