summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/blevesearch/bleve/index/upsidedown/dump.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/blevesearch/bleve/index/upsidedown/dump.go')
-rw-r--r--vendor/github.com/blevesearch/bleve/index/upsidedown/dump.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/vendor/github.com/blevesearch/bleve/index/upsidedown/dump.go b/vendor/github.com/blevesearch/bleve/index/upsidedown/dump.go
index 58dc0dd204..cb045d2493 100644
--- a/vendor/github.com/blevesearch/bleve/index/upsidedown/dump.go
+++ b/vendor/github.com/blevesearch/bleve/index/upsidedown/dump.go
@@ -127,10 +127,12 @@ func (i *IndexReader) DumpDoc(id string) chan interface{} {
}
// build sorted list of term keys
keys := make(keyset, 0)
- for _, entry := range back.termEntries {
- tfr := NewTermFrequencyRow([]byte(*entry.Term), uint16(*entry.Field), idBytes, 0, 0)
- key := tfr.Key()
- keys = append(keys, key)
+ for _, entry := range back.termsEntries {
+ for i := range entry.Terms {
+ tfr := NewTermFrequencyRow([]byte(entry.Terms[i]), uint16(*entry.Field), idBytes, 0, 0)
+ key := tfr.Key()
+ keys = append(keys, key)
+ }
}
sort.Sort(keys)