snapshot of https://github.com/blevesearch/bleve.git (master, 2026-09-15; blobs > 131072B omitted)
Some checks failed
Coverage / coverage (push) Failing after 6s
Tests / test (1.24.x, ubuntu-latest) (push) Failing after 42s
Tests / test (1.26.x, ubuntu-latest) (push) Failing after 38s
Tests / test (1.25.x, ubuntu-latest) (push) Failing after 35s
Tests / test (1.25.x, windows-latest) (push) Has been cancelled
Tests / test (1.26.x, macos-latest) (push) Has been cancelled
Tests / test (1.26.x, windows-latest) (push) Has been cancelled
Tests / test (1.24.x, macos-latest) (push) Has been cancelled
Tests / test (1.24.x, windows-latest) (push) Has been cancelled
Tests / test (1.25.x, macos-latest) (push) Has been cancelled

This commit is contained in:
upstream-mirror
2026-09-15 22:27:16 +05:00
commit f8d3d9f0cf
797 changed files with 159570 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
package document
import "testing"
func TestGeoPointField(t *testing.T) {
gf := NewGeoPointField("loc", []uint64{}, 0.0015, 0.0015)
gf.Analyze()
numTokens := gf.AnalyzedLength()
tokenFreqs := gf.AnalyzedTokenFrequencies()
if numTokens != 8 {
t.Errorf("expected 8 tokens, got %d", numTokens)
}
if len(tokenFreqs) != 8 {
t.Errorf("expected 8 token freqs")
}
}