diff --git a/readme.md b/readme.md index 42cc024..918e1b7 100644 --- a/readme.md +++ b/readme.md @@ -45,6 +45,7 @@ Install Go 1.14+ - Ubuntu: `sudo add-apt-repository ppa:longsleep/golang-backports && sudo apt install golang-go` - OSX: `brew install go` +- Windows https://golang.org/doc/install Download `protoc` from https://github.com/protocolbuffers/protobuf/releases and make sure it is executable and in your path. @@ -65,6 +66,10 @@ Run `./dev.sh` to start the hub. The script will restart the hub as you make cha To search, use `go run . search text goes here`. +#### Windows + +reflex doesn't work on windows, so you'll need to run `go run . serve` and restart manually as you make changes. + ## License This project is MIT licensed. For the full license, see [LICENSE](LICENSE). diff --git a/server/search.go b/server/search.go index 754ef4a..37a6e48 100644 --- a/server/search.go +++ b/server/search.go @@ -18,7 +18,7 @@ type record struct { func (s *Server) Search(ctx context.Context, in *pb.SearchRequest) (*pb.SearchReply, error) { // TODO: reuse elastic client across requests - client, err := elastic.NewClient() + client, err := elastic.NewClient(elastic.SetSniff(false)) if err != nil { return nil, err }