Get things working and add windows to readme
This commit is contained in:
parent
5307530165
commit
804b0e2d52
2 changed files with 6 additions and 1 deletions
|
@ -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).
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue