Created
August 3, 2016 18:13
-
-
Save steveyen/c53027e1aff29a1d721ac19592999de7 to your computer and use it in GitHub Desktop.
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$ git diff | |
diff --git a/index/index.go b/index/index.go | |
index 880c35f..77e4d46 100644 | |
--- a/index/index.go | |
+++ b/index/index.go | |
@@ -123,7 +123,9 @@ type TermFieldDoc struct { | |
} | |
func (tfd *TermFieldDoc) Reset() *TermFieldDoc { | |
+ id := tfd.ID | |
*tfd = TermFieldDoc{} | |
+ tfd.ID = id[:0] | |
return tfd | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment