From e90f4dee02a43f6e9b08350817d584b8a537759f Mon Sep 17 00:00:00 2001 From: Adnan Siddiqi Date: Sun, 7 Jun 2020 21:46:12 +0500 Subject: [PATCH] fix: Adding Search example --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index bc97807..02e0f24 100644 --- a/README.md +++ b/README.md @@ -47,4 +47,17 @@ func main() { } } ``` + +### For Searching +``` +/* Searching Documents */ + + CSVDocument.Init() + result, _, err := CSVDocument.Search("siddiqi") + if err != nil { + fmt.Println(err) + } + fmt.Println("Printing the text present in CSV Document") + fmt.Println(result) +``` If you want to learn how this all work then visit the [blog post](http://blog.adnansiddiqi.me/fehrist-document-indexing-library-in-go/)