From 1ce81c2f8563b1074ed9b35948012467f0165d11 Mon Sep 17 00:00:00 2001 From: Nimish Gupta Date: Tue, 17 Feb 2015 11:40:07 +0530 Subject: [PATCH] Minor change in example code in README --- README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 21b41ab8..6b1a57b4 100644 --- a/README.md +++ b/README.md @@ -28,9 +28,9 @@ Discuss usage and development of bleve in the [google group](https://groups.goog ## Indexing message := struct{ - Id string, - From string, - Body string, + Id string + From string + Body string }{ Id: "example", From: "marty.schoch@gmail.com", @@ -38,7 +38,10 @@ Discuss usage and development of bleve in the [google group](https://groups.goog } mapping := bleve.NewIndexMapping() - index, _ := bleve.New("example.bleve", mapping) + index, err := bleve.New("example.bleve", mapping) + if err != nil { + panic(err) + } index.Index(message.Id, message) ## Querying