Created
January 5, 2016 20:38
-
-
Save steveyen/9bd71ffe2e7dd35b2169 to your computer and use it in GitHub Desktop.
test failure
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Steves-MacBook-Pro:bleve steveyen$ go test ./... | |
ok github.com/blevesearch/bleve 0.290s | |
ok github.com/blevesearch/bleve/analysis 0.011s | |
? github.com/blevesearch/bleve/analysis/analyzers/custom_analyzer [no test files] | |
? github.com/blevesearch/bleve/analysis/analyzers/keyword_analyzer [no test files] | |
? github.com/blevesearch/bleve/analysis/analyzers/simple_analyzer [no test files] | |
? github.com/blevesearch/bleve/analysis/analyzers/standard_analyzer [no test files] | |
? github.com/blevesearch/bleve/analysis/analyzers/web [no test files] | |
? github.com/blevesearch/bleve/analysis/byte_array_converters/ignore [no test files] | |
? github.com/blevesearch/bleve/analysis/byte_array_converters/json [no test files] | |
? github.com/blevesearch/bleve/analysis/byte_array_converters/string [no test files] | |
? github.com/blevesearch/bleve/analysis/char_filters/html_char_filter [no test files] | |
ok github.com/blevesearch/bleve/analysis/char_filters/regexp_char_filter 0.010s | |
? github.com/blevesearch/bleve/analysis/char_filters/zero_width_non_joiner [no test files] | |
? github.com/blevesearch/bleve/analysis/datetime_parsers/datetime_optional [no test files] | |
ok github.com/blevesearch/bleve/analysis/datetime_parsers/flexible_go 0.010s | |
ok github.com/blevesearch/bleve/analysis/language/ar 0.010s | |
? github.com/blevesearch/bleve/analysis/language/bg [no test files] | |
ok github.com/blevesearch/bleve/analysis/language/ca 0.009s | |
ok github.com/blevesearch/bleve/analysis/language/cjk 0.012s | |
ok github.com/blevesearch/bleve/analysis/language/ckb 0.009s | |
? github.com/blevesearch/bleve/analysis/language/cs [no test files] | |
? github.com/blevesearch/bleve/analysis/language/el [no test files] | |
ok github.com/blevesearch/bleve/analysis/language/en 0.011s | |
? github.com/blevesearch/bleve/analysis/language/eu [no test files] | |
ok github.com/blevesearch/bleve/analysis/language/fa 0.012s | |
ok github.com/blevesearch/bleve/analysis/language/fr 0.011s | |
ok github.com/blevesearch/bleve/analysis/language/ga 0.010s | |
? github.com/blevesearch/bleve/analysis/language/gl [no test files] | |
ok github.com/blevesearch/bleve/analysis/language/hi 0.011s | |
? github.com/blevesearch/bleve/analysis/language/hy [no test files] | |
? github.com/blevesearch/bleve/analysis/language/id [no test files] | |
ok github.com/blevesearch/bleve/analysis/language/in 0.013s | |
ok github.com/blevesearch/bleve/analysis/language/it 0.010s | |
ok github.com/blevesearch/bleve/analysis/language/ja 6.623s | |
ok github.com/blevesearch/bleve/analysis/language/pt 0.011s | |
ok github.com/blevesearch/bleve/analysis/token_filters/apostrophe_filter 0.010s | |
ok github.com/blevesearch/bleve/analysis/token_filters/compound 0.010s | |
ok github.com/blevesearch/bleve/analysis/token_filters/edge_ngram_filter 0.010s | |
ok github.com/blevesearch/bleve/analysis/token_filters/elision_filter 0.011s | |
ok github.com/blevesearch/bleve/analysis/token_filters/keyword_marker_filter 0.013s | |
ok github.com/blevesearch/bleve/analysis/token_filters/length_filter 0.010s | |
ok github.com/blevesearch/bleve/analysis/token_filters/lower_case_filter 0.011s | |
ok github.com/blevesearch/bleve/analysis/token_filters/ngram_filter 0.009s | |
ok github.com/blevesearch/bleve/analysis/token_filters/porter 0.010s | |
ok github.com/blevesearch/bleve/analysis/token_filters/shingle 0.010s | |
ok github.com/blevesearch/bleve/analysis/token_filters/stop_tokens_filter 0.012s | |
ok github.com/blevesearch/bleve/analysis/token_filters/truncate_token_filter 0.010s | |
ok github.com/blevesearch/bleve/analysis/token_filters/unicode_normalize 0.011s | |
? github.com/blevesearch/bleve/analysis/token_map [no test files] | |
ok github.com/blevesearch/bleve/analysis/tokenizers/exception 0.011s | |
ok github.com/blevesearch/bleve/analysis/tokenizers/regexp_tokenizer 0.014s | |
ok github.com/blevesearch/bleve/analysis/tokenizers/single_token 0.012s | |
ok github.com/blevesearch/bleve/analysis/tokenizers/unicode 0.009s | |
ok github.com/blevesearch/bleve/analysis/tokenizers/web 0.011s | |
ok github.com/blevesearch/bleve/analysis/tokenizers/whitespace_tokenizer 0.011s | |
? github.com/blevesearch/bleve/config [no test files] | |
? github.com/blevesearch/bleve/docs [no test files] | |
ok github.com/blevesearch/bleve/document 0.011s | |
ok github.com/blevesearch/bleve/http 0.035s | |
? github.com/blevesearch/bleve/index [no test files] | |
ok github.com/blevesearch/bleve/index/firestorm 3.194s | |
? github.com/blevesearch/bleve/index/store [no test files] | |
ok github.com/blevesearch/bleve/index/store/boltdb 0.031s | |
ok github.com/blevesearch/bleve/index/store/goleveldb 0.044s | |
ok github.com/blevesearch/bleve/index/store/gtreap 0.019s | |
ok github.com/blevesearch/bleve/index/store/metrics 0.022s | |
ok github.com/blevesearch/bleve/index/store/null 0.010s | |
? github.com/blevesearch/bleve/index/store/test [no test files] | |
ok github.com/blevesearch/bleve/index/upside_down 0.084s | |
ok github.com/blevesearch/bleve/numeric_util 0.012s | |
? github.com/blevesearch/bleve/registry [no test files] | |
ok github.com/blevesearch/bleve/search 0.011s | |
ok github.com/blevesearch/bleve/search/collectors 0.011s | |
ok github.com/blevesearch/bleve/search/facets 0.139s | |
ok github.com/blevesearch/bleve/search/highlight 0.013s | |
? github.com/blevesearch/bleve/search/highlight/fragment_formatters/ansi [no test files] | |
ok github.com/blevesearch/bleve/search/highlight/fragment_formatters/html 0.014s | |
ok github.com/blevesearch/bleve/search/highlight/fragmenters/simple 0.012s | |
? github.com/blevesearch/bleve/search/highlight/highlighters/ansi [no test files] | |
? github.com/blevesearch/bleve/search/highlight/highlighters/html [no test files] | |
ok github.com/blevesearch/bleve/search/highlight/highlighters/simple 0.011s | |
ok github.com/blevesearch/bleve/search/scorers 0.012s | |
--- FAIL: TestBooleanSearch (0.00s) | |
search_boolean_test.go:353: expected result 0 to have score 0.9818005051949021 got 0.34618161159873423 for test 0 | |
search_boolean_test.go:354: scoring explanation: { | |
"value": 0.34618161159873423, | |
"message": "sum of:", | |
"children": [ | |
{ | |
"value": 0.34618161159873423, | |
"message": "sum of:", | |
"children": [ | |
{ | |
"value": 0.34618161159873423, | |
"message": "weight(desc:beer^1.000000 in 1), product of:", | |
"children": [ | |
{ | |
"value": 0.34618161159873423, | |
"message": "queryWeight(desc:beer^1.000000), product of:", | |
"children": [ | |
{ | |
"value": 1, | |
"message": "boost" | |
}, | |
{ | |
"value": 1, | |
"message": "idf(docFreq=4, maxDocs=5)" | |
}, | |
{ | |
"value": 0.34618161159873423, | |
"message": "queryNorm" | |
} | |
] | |
}, | |
{ | |
"value": 1, | |
"message": "fieldWeight(desc:beer in 1), product of:", | |
"children": [ | |
{ | |
"value": 2, | |
"message": "tf(termFreq(desc:beer)=4" | |
}, | |
{ | |
"value": 0.5, | |
"message": "fieldNorm(field=desc, doc=1)" | |
}, | |
{ | |
"value": 1, | |
"message": "idf(docFreq=4, maxDocs=5)" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"value": 0, | |
"message": "product of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "sum of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "weight(name:marty^1.000000 in 1), product of:", | |
"children": [ | |
{ | |
"value": 0.6633846138519129, | |
"message": "queryWeight(name:marty^1.000000), product of:", | |
"children": [ | |
{ | |
"value": 1, | |
"message": "boost" | |
}, | |
{ | |
"value": 1.916290731874155, | |
"message": "idf(docFreq=1, maxDocs=5)" | |
}, | |
{ | |
"value": 0.34618161159873423, | |
"message": "queryNorm" | |
} | |
] | |
}, | |
{ | |
"value": 0, | |
"message": "fieldWeight(name:marty in 1), product of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "tf(termFreq(name:marty)=0" | |
}, | |
{ | |
"value": 1, | |
"message": "fieldNorm(field=name, doc=1)" | |
}, | |
{ | |
"value": 1.916290731874155, | |
"message": "idf(docFreq=1, maxDocs=5)" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"value": 0.5, | |
"message": "coord(1/2)" | |
} | |
] | |
} | |
] | |
} | |
search_boolean_test.go:353: expected result 1 to have score 0.808709699395535 got 0.17309080579936711 for test 0 | |
search_boolean_test.go:354: scoring explanation: { | |
"value": 0.17309080579936711, | |
"message": "sum of:", | |
"children": [ | |
{ | |
"value": 0.17309080579936711, | |
"message": "sum of:", | |
"children": [ | |
{ | |
"value": 0.17309080579936711, | |
"message": "weight(desc:beer^1.000000 in 3), product of:", | |
"children": [ | |
{ | |
"value": 0.34618161159873423, | |
"message": "queryWeight(desc:beer^1.000000), product of:", | |
"children": [ | |
{ | |
"value": 1, | |
"message": "boost" | |
}, | |
{ | |
"value": 1, | |
"message": "idf(docFreq=4, maxDocs=5)" | |
}, | |
{ | |
"value": 0.34618161159873423, | |
"message": "queryNorm" | |
} | |
] | |
}, | |
{ | |
"value": 0.5, | |
"message": "fieldWeight(desc:beer in 3), product of:", | |
"children": [ | |
{ | |
"value": 1, | |
"message": "tf(termFreq(desc:beer)=1" | |
}, | |
{ | |
"value": 0.5, | |
"message": "fieldNorm(field=desc, doc=3)" | |
}, | |
{ | |
"value": 1, | |
"message": "idf(docFreq=4, maxDocs=5)" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"value": 0, | |
"message": "product of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "sum of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "weight(name:dustin^1.000000 in 3), product of:", | |
"children": [ | |
{ | |
"value": 0.6633846138519129, | |
"message": "queryWeight(name:dustin^1.000000), product of:", | |
"children": [ | |
{ | |
"value": 1, | |
"message": "boost" | |
}, | |
{ | |
"value": 1.916290731874155, | |
"message": "idf(docFreq=1, maxDocs=5)" | |
}, | |
{ | |
"value": 0.34618161159873423, | |
"message": "queryNorm" | |
} | |
] | |
}, | |
{ | |
"value": 0, | |
"message": "fieldWeight(name:dustin in 3), product of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "tf(termFreq(name:dustin)=0" | |
}, | |
{ | |
"value": 1, | |
"message": "fieldNorm(field=name, doc=3)" | |
}, | |
{ | |
"value": 1.916290731874155, | |
"message": "idf(docFreq=1, maxDocs=5)" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"value": 0.5, | |
"message": "coord(1/2)" | |
} | |
] | |
} | |
] | |
} | |
search_boolean_test.go:353: expected result 0 to have score 0.6775110856165737 got 0 for test 1 | |
search_boolean_test.go:354: scoring explanation: { | |
"value": 0, | |
"message": "sum of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "product of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "sum of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "weight(name:marty^1.000000 in 1), product of:", | |
"children": [ | |
{ | |
"value": 0.7071067811865476, | |
"message": "queryWeight(name:marty^1.000000), product of:", | |
"children": [ | |
{ | |
"value": 1, | |
"message": "boost" | |
}, | |
{ | |
"value": 1.916290731874155, | |
"message": "idf(docFreq=1, maxDocs=5)" | |
}, | |
{ | |
"value": 0.36899765230038384, | |
"message": "queryNorm" | |
} | |
] | |
}, | |
{ | |
"value": 0, | |
"message": "fieldWeight(name:marty in 1), product of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "tf(termFreq(name:marty)=0" | |
}, | |
{ | |
"value": 1, | |
"message": "fieldNorm(field=name, doc=1)" | |
}, | |
{ | |
"value": 1.916290731874155, | |
"message": "idf(docFreq=1, maxDocs=5)" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"value": 0.5, | |
"message": "coord(1/2)" | |
} | |
] | |
} | |
] | |
} | |
search_boolean_test.go:353: expected result 1 to have score 0.6775110856165737 got 0 for test 1 | |
search_boolean_test.go:354: scoring explanation: { | |
"value": 0, | |
"message": "sum of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "product of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "sum of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "weight(name:dustin^1.000000 in 3), product of:", | |
"children": [ | |
{ | |
"value": 0.7071067811865476, | |
"message": "queryWeight(name:dustin^1.000000), product of:", | |
"children": [ | |
{ | |
"value": 1, | |
"message": "boost" | |
}, | |
{ | |
"value": 1.916290731874155, | |
"message": "idf(docFreq=1, maxDocs=5)" | |
}, | |
{ | |
"value": 0.36899765230038384, | |
"message": "queryNorm" | |
} | |
] | |
}, | |
{ | |
"value": 0, | |
"message": "fieldWeight(name:dustin in 3), product of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "tf(termFreq(name:dustin)=0" | |
}, | |
{ | |
"value": 1, | |
"message": "fieldNorm(field=name, doc=3)" | |
}, | |
{ | |
"value": 1.916290731874155, | |
"message": "idf(docFreq=1, maxDocs=5)" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"value": 0.5, | |
"message": "coord(1/2)" | |
} | |
] | |
} | |
] | |
} | |
search_boolean_test.go:353: expected result 0 to have score 2.0097428702814377 got 0.10380447049235944 for test 6 | |
search_boolean_test.go:354: scoring explanation: { | |
"value": 0.10380447049235944, | |
"message": "sum of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "weight(name:marty^5.000000 in 1), product of:", | |
"children": [ | |
{ | |
"value": 0.9945977236580631, | |
"message": "queryWeight(name:marty^5.000000), product of:", | |
"children": [ | |
{ | |
"value": 5, | |
"message": "boost" | |
}, | |
{ | |
"value": 1.916290731874155, | |
"message": "idf(docFreq=1, maxDocs=5)" | |
}, | |
{ | |
"value": 0.10380447049235944, | |
"message": "queryNorm" | |
} | |
] | |
}, | |
{ | |
"value": 0, | |
"message": "fieldWeight(name:marty in 1), product of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "tf(termFreq(name:marty)=0" | |
}, | |
{ | |
"value": 1, | |
"message": "fieldNorm(field=name, doc=1)" | |
}, | |
{ | |
"value": 1.916290731874155, | |
"message": "idf(docFreq=1, maxDocs=5)" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"value": 0.10380447049235944, | |
"message": "sum of:", | |
"children": [ | |
{ | |
"value": 0.10380447049235944, | |
"message": "sum of:", | |
"children": [ | |
{ | |
"value": 0.10380447049235944, | |
"message": "weight(desc:beer^1.000000 in 1), product of:", | |
"children": [ | |
{ | |
"value": 0.10380447049235944, | |
"message": "queryWeight(desc:beer^1.000000), product of:", | |
"children": [ | |
{ | |
"value": 1, | |
"message": "boost" | |
}, | |
{ | |
"value": 1, | |
"message": "idf(docFreq=4, maxDocs=5)" | |
}, | |
{ | |
"value": 0.10380447049235944, | |
"message": "queryNorm" | |
} | |
] | |
}, | |
{ | |
"value": 1, | |
"message": "fieldWeight(desc:beer in 1), product of:", | |
"children": [ | |
{ | |
"value": 2, | |
"message": "tf(termFreq(desc:beer)=4" | |
}, | |
{ | |
"value": 0.5, | |
"message": "fieldNorm(field=desc, doc=1)" | |
}, | |
{ | |
"value": 1, | |
"message": "idf(docFreq=4, maxDocs=5)" | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
search_boolean_test.go:353: expected result 0 to have score 2.0681575785068107 got 0.04996289270824614 for test 7 | |
search_boolean_test.go:354: scoring explanation: { | |
"value": 0.04996289270824614, | |
"message": "sum of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "weight(name:dustin^5.000000 in 3), product of:", | |
"children": [ | |
{ | |
"value": 0.9574342823443489, | |
"message": "queryWeight(name:dustin^5.000000), product of:", | |
"children": [ | |
{ | |
"value": 5, | |
"message": "boost" | |
}, | |
{ | |
"value": 1.916290731874155, | |
"message": "idf(docFreq=1, maxDocs=5)" | |
}, | |
{ | |
"value": 0.09992578541649227, | |
"message": "queryNorm" | |
} | |
] | |
}, | |
{ | |
"value": 0, | |
"message": "fieldWeight(name:dustin in 3), product of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "tf(termFreq(name:dustin)=0" | |
}, | |
{ | |
"value": 1, | |
"message": "fieldNorm(field=name, doc=3)" | |
}, | |
{ | |
"value": 1.916290731874155, | |
"message": "idf(docFreq=1, maxDocs=5)" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"value": 0.04996289270824614, | |
"message": "sum of:", | |
"children": [ | |
{ | |
"value": 0.04996289270824614, | |
"message": "sum of:", | |
"children": [ | |
{ | |
"value": 0.04996289270824614, | |
"message": "weight(desc:beer^1.000000 in 3), product of:", | |
"children": [ | |
{ | |
"value": 0.09992578541649227, | |
"message": "queryWeight(desc:beer^1.000000), product of:", | |
"children": [ | |
{ | |
"value": 1, | |
"message": "boost" | |
}, | |
{ | |
"value": 1, | |
"message": "idf(docFreq=4, maxDocs=5)" | |
}, | |
{ | |
"value": 0.09992578541649227, | |
"message": "queryNorm" | |
} | |
] | |
}, | |
{ | |
"value": 0.5, | |
"message": "fieldWeight(desc:beer in 3), product of:", | |
"children": [ | |
{ | |
"value": 1, | |
"message": "tf(termFreq(desc:beer)=1" | |
}, | |
{ | |
"value": 0.5, | |
"message": "fieldNorm(field=desc, doc=3)" | |
}, | |
{ | |
"value": 1, | |
"message": "idf(docFreq=4, maxDocs=5)" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"value": 0, | |
"message": "product of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "sum of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "weight(name:dustin^1.000000 in 3), product of:", | |
"children": [ | |
{ | |
"value": 0.19148685646886976, | |
"message": "queryWeight(name:dustin^1.000000), product of:", | |
"children": [ | |
{ | |
"value": 1, | |
"message": "boost" | |
}, | |
{ | |
"value": 1.916290731874155, | |
"message": "idf(docFreq=1, maxDocs=5)" | |
}, | |
{ | |
"value": 0.09992578541649227, | |
"message": "queryNorm" | |
} | |
] | |
}, | |
{ | |
"value": 0, | |
"message": "fieldWeight(name:dustin in 3), product of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "tf(termFreq(name:dustin)=0" | |
}, | |
{ | |
"value": 1, | |
"message": "fieldNorm(field=name, doc=3)" | |
}, | |
{ | |
"value": 1.916290731874155, | |
"message": "idf(docFreq=1, maxDocs=5)" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"value": 0.5, | |
"message": "coord(1/2)" | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
--- FAIL: TestConjunctionSearch (0.00s) | |
search_conjunction_test.go:198: expected result 0 to have score 2.0097428702814377 got 0.10380447049235944 for test 0 | |
search_conjunction_test.go:199: scoring explanation: { | |
"value": 0.10380447049235944, | |
"message": "sum of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "weight(name:marty^5.000000 in 1), product of:", | |
"children": [ | |
{ | |
"value": 0.9945977236580631, | |
"message": "queryWeight(name:marty^5.000000), product of:", | |
"children": [ | |
{ | |
"value": 5, | |
"message": "boost" | |
}, | |
{ | |
"value": 1.916290731874155, | |
"message": "idf(docFreq=1, maxDocs=5)" | |
}, | |
{ | |
"value": 0.10380447049235944, | |
"message": "queryNorm" | |
} | |
] | |
}, | |
{ | |
"value": 0, | |
"message": "fieldWeight(name:marty in 1), product of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "tf(termFreq(name:marty)=0" | |
}, | |
{ | |
"value": 1, | |
"message": "fieldNorm(field=name, doc=1)" | |
}, | |
{ | |
"value": 1.916290731874155, | |
"message": "idf(docFreq=1, maxDocs=5)" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"value": 0.10380447049235944, | |
"message": "weight(desc:beer^1.000000 in 1), product of:", | |
"children": [ | |
{ | |
"value": 0.10380447049235944, | |
"message": "queryWeight(desc:beer^1.000000), product of:", | |
"children": [ | |
{ | |
"value": 1, | |
"message": "boost" | |
}, | |
{ | |
"value": 1, | |
"message": "idf(docFreq=4, maxDocs=5)" | |
}, | |
{ | |
"value": 0.10380447049235944, | |
"message": "queryNorm" | |
} | |
] | |
}, | |
{ | |
"value": 1, | |
"message": "fieldWeight(desc:beer in 1), product of:", | |
"children": [ | |
{ | |
"value": 2, | |
"message": "tf(termFreq(desc:beer)=4" | |
}, | |
{ | |
"value": 0.5, | |
"message": "fieldNorm(field=desc, doc=1)" | |
}, | |
{ | |
"value": 1, | |
"message": "idf(docFreq=4, maxDocs=5)" | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
search_conjunction_test.go:198: expected result 0 to have score 1.2877980334016337 got 0.0806850480362232 for test 3 | |
search_conjunction_test.go:199: scoring explanation: { | |
"value": 0.0806850480362232, | |
"message": "sum of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "weight(title:mister^5.000000 in 2), product of:", | |
"children": [ | |
{ | |
"value": 0.9868939619298365, | |
"message": "queryWeight(title:mister^5.000000), product of:", | |
"children": [ | |
{ | |
"value": 5, | |
"message": "boost" | |
}, | |
{ | |
"value": 1.2231435513142097, | |
"message": "idf(docFreq=3, maxDocs=5)" | |
}, | |
{ | |
"value": 0.1613700960724464, | |
"message": "queryNorm" | |
} | |
] | |
}, | |
{ | |
"value": 0, | |
"message": "fieldWeight(title:mister in 2), product of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "tf(termFreq(title:mister)=0" | |
}, | |
{ | |
"value": 1, | |
"message": "fieldNorm(field=title, doc=2)" | |
}, | |
{ | |
"value": 1.2231435513142097, | |
"message": "idf(docFreq=3, maxDocs=5)" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"value": 0.0806850480362232, | |
"message": "weight(desc:beer^1.000000 in 2), product of:", | |
"children": [ | |
{ | |
"value": 0.1613700960724464, | |
"message": "queryWeight(desc:beer^1.000000), product of:", | |
"children": [ | |
{ | |
"value": 1, | |
"message": "boost" | |
}, | |
{ | |
"value": 1, | |
"message": "idf(docFreq=4, maxDocs=5)" | |
}, | |
{ | |
"value": 0.1613700960724464, | |
"message": "queryNorm" | |
} | |
] | |
}, | |
{ | |
"value": 0.5, | |
"message": "fieldWeight(desc:beer in 2), product of:", | |
"children": [ | |
{ | |
"value": 1, | |
"message": "tf(termFreq(desc:beer)=1" | |
}, | |
{ | |
"value": 0.5, | |
"message": "fieldNorm(field=desc, doc=2)" | |
}, | |
{ | |
"value": 1, | |
"message": "idf(docFreq=4, maxDocs=5)" | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
search_conjunction_test.go:198: expected result 1 to have score 1.2877980334016337 got 0.0806850480362232 for test 3 | |
search_conjunction_test.go:199: scoring explanation: { | |
"value": 0.0806850480362232, | |
"message": "sum of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "weight(title:mister^5.000000 in 3), product of:", | |
"children": [ | |
{ | |
"value": 0.9868939619298365, | |
"message": "queryWeight(title:mister^5.000000), product of:", | |
"children": [ | |
{ | |
"value": 5, | |
"message": "boost" | |
}, | |
{ | |
"value": 1.2231435513142097, | |
"message": "idf(docFreq=3, maxDocs=5)" | |
}, | |
{ | |
"value": 0.1613700960724464, | |
"message": "queryNorm" | |
} | |
] | |
}, | |
{ | |
"value": 0, | |
"message": "fieldWeight(title:mister in 3), product of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "tf(termFreq(title:mister)=0" | |
}, | |
{ | |
"value": 1, | |
"message": "fieldNorm(field=title, doc=3)" | |
}, | |
{ | |
"value": 1.2231435513142097, | |
"message": "idf(docFreq=3, maxDocs=5)" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"value": 0.0806850480362232, | |
"message": "weight(desc:beer^1.000000 in 3), product of:", | |
"children": [ | |
{ | |
"value": 0.1613700960724464, | |
"message": "queryWeight(desc:beer^1.000000), product of:", | |
"children": [ | |
{ | |
"value": 1, | |
"message": "boost" | |
}, | |
{ | |
"value": 1, | |
"message": "idf(docFreq=4, maxDocs=5)" | |
}, | |
{ | |
"value": 0.1613700960724464, | |
"message": "queryNorm" | |
} | |
] | |
}, | |
{ | |
"value": 0.5, | |
"message": "fieldWeight(desc:beer in 3), product of:", | |
"children": [ | |
{ | |
"value": 1, | |
"message": "tf(termFreq(desc:beer)=1" | |
}, | |
{ | |
"value": 0.5, | |
"message": "fieldNorm(field=desc, doc=3)" | |
}, | |
{ | |
"value": 1, | |
"message": "idf(docFreq=4, maxDocs=5)" | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
search_conjunction_test.go:198: expected result 0 to have score 1.4436599157093672 got 0 for test 4 | |
search_conjunction_test.go:199: scoring explanation: { | |
"value": 0, | |
"message": "sum of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "weight(street:couchbase^1.000000 in 2), product of:", | |
"children": [ | |
{ | |
"value": 0.239829913407135, | |
"message": "queryWeight(street:couchbase^1.000000), product of:", | |
"children": [ | |
{ | |
"value": 1, | |
"message": "boost" | |
}, | |
{ | |
"value": 1.5108256237659907, | |
"message": "idf(docFreq=2, maxDocs=5)" | |
}, | |
{ | |
"value": 0.15874096231523926, | |
"message": "queryNorm" | |
} | |
] | |
}, | |
{ | |
"value": 0, | |
"message": "fieldWeight(street:couchbase in 2), product of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "tf(termFreq(street:couchbase)=0" | |
}, | |
{ | |
"value": 0.7071067690849304, | |
"message": "fieldNorm(field=street, doc=2)" | |
}, | |
{ | |
"value": 1.5108256237659907, | |
"message": "idf(docFreq=2, maxDocs=5)" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"value": 0, | |
"message": "weight(title:mister^5.000000 in 2), product of:", | |
"children": [ | |
{ | |
"value": 0.9708149219264844, | |
"message": "queryWeight(title:mister^5.000000), product of:", | |
"children": [ | |
{ | |
"value": 5, | |
"message": "boost" | |
}, | |
{ | |
"value": 1.2231435513142097, | |
"message": "idf(docFreq=3, maxDocs=5)" | |
}, | |
{ | |
"value": 0.15874096231523926, | |
"message": "queryNorm" | |
} | |
] | |
}, | |
{ | |
"value": 0, | |
"message": "fieldWeight(title:mister in 2), product of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "tf(termFreq(title:mister)=0" | |
}, | |
{ | |
"value": 1, | |
"message": "fieldNorm(field=title, doc=2)" | |
}, | |
{ | |
"value": 1.2231435513142097, | |
"message": "idf(docFreq=3, maxDocs=5)" | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
search_conjunction_test.go:198: expected result 0 to have score 1.441614953806971 got 0.3108419092440166 for test 5 | |
search_conjunction_test.go:199: scoring explanation: { | |
"value": 0.3108419092440166, | |
"message": "sum of:", | |
"children": [ | |
{ | |
"value": 0.3108419092440166, | |
"message": "weight(desc:beer^5.000000 in 2), product of:", | |
"children": [ | |
{ | |
"value": 0.6216838184880332, | |
"message": "queryWeight(desc:beer^5.000000), product of:", | |
"children": [ | |
{ | |
"value": 5, | |
"message": "boost" | |
}, | |
{ | |
"value": 1, | |
"message": "idf(docFreq=4, maxDocs=5)" | |
}, | |
{ | |
"value": 0.12433676369760664, | |
"message": "queryNorm" | |
} | |
] | |
}, | |
{ | |
"value": 0.5, | |
"message": "fieldWeight(desc:beer in 2), product of:", | |
"children": [ | |
{ | |
"value": 1, | |
"message": "tf(termFreq(desc:beer)=1" | |
}, | |
{ | |
"value": 0.5, | |
"message": "fieldNorm(field=desc, doc=2)" | |
}, | |
{ | |
"value": 1, | |
"message": "idf(docFreq=4, maxDocs=5)" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"value": 0, | |
"message": "sum of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "weight(street:couchbase^1.000000 in 2), product of:", | |
"children": [ | |
{ | |
"value": 0.18785116857048115, | |
"message": "queryWeight(street:couchbase^1.000000), product of:", | |
"children": [ | |
{ | |
"value": 1, | |
"message": "boost" | |
}, | |
{ | |
"value": 1.5108256237659907, | |
"message": "idf(docFreq=2, maxDocs=5)" | |
}, | |
{ | |
"value": 0.12433676369760664, | |
"message": "queryNorm" | |
} | |
] | |
}, | |
{ | |
"value": 0, | |
"message": "fieldWeight(street:couchbase in 2), product of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "tf(termFreq(street:couchbase)=0" | |
}, | |
{ | |
"value": 0.7071067690849304, | |
"message": "fieldNorm(field=street, doc=2)" | |
}, | |
{ | |
"value": 1.5108256237659907, | |
"message": "idf(docFreq=2, maxDocs=5)" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"value": 0, | |
"message": "weight(title:mister^5.000000 in 2), product of:", | |
"children": [ | |
{ | |
"value": 0.7604085535400315, | |
"message": "queryWeight(title:mister^5.000000), product of:", | |
"children": [ | |
{ | |
"value": 5, | |
"message": "boost" | |
}, | |
{ | |
"value": 1.2231435513142097, | |
"message": "idf(docFreq=3, maxDocs=5)" | |
}, | |
{ | |
"value": 0.12433676369760664, | |
"message": "queryNorm" | |
} | |
] | |
}, | |
{ | |
"value": 0, | |
"message": "fieldWeight(title:mister in 2), product of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "tf(termFreq(title:mister)=0" | |
}, | |
{ | |
"value": 1, | |
"message": "fieldNorm(field=title, doc=2)" | |
}, | |
{ | |
"value": 1.2231435513142097, | |
"message": "idf(docFreq=3, maxDocs=5)" | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
--- FAIL: TestDisjunctionSearch (0.00s) | |
search_disjunction_test.go:119: expected result 0 to have score 0.6775110856165737 got 0 for test 0 | |
search_disjunction_test.go:120: scoring explanation: { | |
"value": 0, | |
"message": "product of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "sum of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "weight(name:marty^1.000000 in 1), product of:", | |
"children": [ | |
{ | |
"value": 0.7071067811865476, | |
"message": "queryWeight(name:marty^1.000000), product of:", | |
"children": [ | |
{ | |
"value": 1, | |
"message": "boost" | |
}, | |
{ | |
"value": 1.916290731874155, | |
"message": "idf(docFreq=1, maxDocs=5)" | |
}, | |
{ | |
"value": 0.36899765230038384, | |
"message": "queryNorm" | |
} | |
] | |
}, | |
{ | |
"value": 0, | |
"message": "fieldWeight(name:marty in 1), product of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "tf(termFreq(name:marty)=0" | |
}, | |
{ | |
"value": 1, | |
"message": "fieldNorm(field=name, doc=1)" | |
}, | |
{ | |
"value": 1.916290731874155, | |
"message": "idf(docFreq=1, maxDocs=5)" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"value": 0.5, | |
"message": "coord(1/2)" | |
} | |
] | |
} | |
search_disjunction_test.go:119: expected result 1 to have score 0.6775110856165737 got 0 for test 0 | |
search_disjunction_test.go:120: scoring explanation: { | |
"value": 0, | |
"message": "product of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "sum of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "weight(name:dustin^1.000000 in 3), product of:", | |
"children": [ | |
{ | |
"value": 0.7071067811865476, | |
"message": "queryWeight(name:dustin^1.000000), product of:", | |
"children": [ | |
{ | |
"value": 1, | |
"message": "boost" | |
}, | |
{ | |
"value": 1.916290731874155, | |
"message": "idf(docFreq=1, maxDocs=5)" | |
}, | |
{ | |
"value": 0.36899765230038384, | |
"message": "queryNorm" | |
} | |
] | |
}, | |
{ | |
"value": 0, | |
"message": "fieldWeight(name:dustin in 3), product of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "tf(termFreq(name:dustin)=0" | |
}, | |
{ | |
"value": 1, | |
"message": "fieldNorm(field=name, doc=3)" | |
}, | |
{ | |
"value": 1.916290731874155, | |
"message": "idf(docFreq=1, maxDocs=5)" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"value": 0.5, | |
"message": "coord(1/2)" | |
} | |
] | |
} | |
search_disjunction_test.go:119: expected result 0 to have score 0.2765927424732821 got 0 for test 1 | |
search_disjunction_test.go:120: scoring explanation: { | |
"value": 0, | |
"message": "product of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "sum of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "product of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "sum of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "weight(name:marty^1.000000 in 1), product of:", | |
"children": [ | |
{ | |
"value": 0.5773502691896257, | |
"message": "queryWeight(name:marty^1.000000), product of:", | |
"children": [ | |
{ | |
"value": 1, | |
"message": "boost" | |
}, | |
{ | |
"value": 1.916290731874155, | |
"message": "idf(docFreq=1, maxDocs=5)" | |
}, | |
{ | |
"value": 0.30128532147362125, | |
"message": "queryNorm" | |
} | |
] | |
}, | |
{ | |
"value": 0, | |
"message": "fieldWeight(name:marty in 1), product of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "tf(termFreq(name:marty)=0" | |
}, | |
{ | |
"value": 1, | |
"message": "fieldNorm(field=name, doc=1)" | |
}, | |
{ | |
"value": 1.916290731874155, | |
"message": "idf(docFreq=1, maxDocs=5)" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"value": 0.5, | |
"message": "coord(1/2)" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"value": 0.5, | |
"message": "coord(1/2)" | |
} | |
] | |
} | |
search_disjunction_test.go:119: expected result 1 to have score 0.2765927424732821 got 0 for test 1 | |
search_disjunction_test.go:120: scoring explanation: { | |
"value": 0, | |
"message": "product of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "sum of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "product of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "sum of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "weight(name:dustin^1.000000 in 3), product of:", | |
"children": [ | |
{ | |
"value": 0.5773502691896257, | |
"message": "queryWeight(name:dustin^1.000000), product of:", | |
"children": [ | |
{ | |
"value": 1, | |
"message": "boost" | |
}, | |
{ | |
"value": 1.916290731874155, | |
"message": "idf(docFreq=1, maxDocs=5)" | |
}, | |
{ | |
"value": 0.30128532147362125, | |
"message": "queryNorm" | |
} | |
] | |
}, | |
{ | |
"value": 0, | |
"message": "fieldWeight(name:dustin in 3), product of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "tf(termFreq(name:dustin)=0" | |
}, | |
{ | |
"value": 1, | |
"message": "fieldNorm(field=name, doc=3)" | |
}, | |
{ | |
"value": 1.916290731874155, | |
"message": "idf(docFreq=1, maxDocs=5)" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"value": 0.5, | |
"message": "coord(1/2)" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"value": 0.5, | |
"message": "coord(1/2)" | |
} | |
] | |
} | |
search_disjunction_test.go:119: expected result 2 to have score 0.5531854849465642 got 0 for test 1 | |
search_disjunction_test.go:120: scoring explanation: { | |
"value": 0, | |
"message": "product of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "sum of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "weight(name:ravi^1.000000 in 4), product of:", | |
"children": [ | |
{ | |
"value": 0.5773502691896257, | |
"message": "queryWeight(name:ravi^1.000000), product of:", | |
"children": [ | |
{ | |
"value": 1, | |
"message": "boost" | |
}, | |
{ | |
"value": 1.916290731874155, | |
"message": "idf(docFreq=1, maxDocs=5)" | |
}, | |
{ | |
"value": 0.30128532147362125, | |
"message": "queryNorm" | |
} | |
] | |
}, | |
{ | |
"value": 0, | |
"message": "fieldWeight(name:ravi in 4), product of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "tf(termFreq(name:ravi)=0" | |
}, | |
{ | |
"value": 1, | |
"message": "fieldNorm(field=name, doc=4)" | |
}, | |
{ | |
"value": 1.916290731874155, | |
"message": "idf(docFreq=1, maxDocs=5)" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"value": 0.5, | |
"message": "coord(1/2)" | |
} | |
] | |
} | |
--- FAIL: TestRegexpSearch (0.00s) | |
search_regexp_test.go:96: expected result 0 to have score 1.916290731874155 got 0 for test 0 | |
search_regexp_test.go:97: scoring explanation: { | |
"value": 0, | |
"message": "product of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "sum of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "fieldWeight(name:marty in 1), product of:", | |
"children": [ | |
{ | |
"value": 0, | |
"message": "tf(termFreq(name:marty)=0" | |
}, | |
{ | |
"value": 1, | |
"message": "fieldNorm(field=name, doc=1)" | |
}, | |
{ | |
"value": 1.916290731874155, | |
"message": "idf(docFreq=1, maxDocs=5)" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"value": 1, | |
"message": "coord(1/1)" | |
} | |
] | |
} | |
FAIL | |
FAIL github.com/blevesearch/bleve/search/searchers 0.022s | |
ok github.com/blevesearch/bleve/test 0.090s | |
? github.com/blevesearch/bleve/utils/bleve_bulkindex [no test files] | |
? github.com/blevesearch/bleve/utils/bleve_create [no test files] | |
? github.com/blevesearch/bleve/utils/bleve_dump [no test files] | |
? github.com/blevesearch/bleve/utils/bleve_index [no test files] | |
? github.com/blevesearch/bleve/utils/bleve_query [no test files] | |
? github.com/blevesearch/bleve/utils/bleve_registry [no test files] | |
Steves-MacBook-Pro:bleve steveyen$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment