using-solr

command
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 29, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

README

Solr Example

To run the example follow the steps below:

Solr Setup

Run the docker image of Solr

  1. docker run --name gofr-solr -p 2020:8983 solr:8 -DzkRun

Now run the following command to load the schema

  1. docker exec -i gofr-solr sh < ../../.github/setups/solrSchema.sh;

Run

Now run the example on path /zopsmart/gofr/examples/using-solr by

  1. go run main.go

Docker Build

To Build a docker image, follow the below steps:

On non linux machines :

  1. GOOS=linux go build main.go This will build a go binary
  2. docker build -t using-solr:$(date +%s) .

On linux machines(Ubuntu/Mac):

  1. go build main.go This will build a go binary
  2. docker build -t using-solr:$(date +%s) .

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL