1
0
mirror of https://github.com/stevenferrer/multi-select-facet.git synced 2025-11-23 21:54:45 +02:00
Go to file
2021-01-11 11:04:25 +08:00
2020-10-19 18:35:21 +08:00
2021-01-11 11:04:25 +08:00
2020-06-09 19:15:43 +08:00
2020-09-28 12:34:51 +08:00
2020-09-28 12:34:51 +08:00
2020-06-08 23:24:42 +08:00
2020-10-19 18:35:21 +08:00
2020-10-19 18:35:21 +08:00
2020-10-19 18:35:21 +08:00

Multi-Select Facet Example

An example of multi-select facet using Solr, Vue and Go.

Blog post: Multi-Select Facet with Solr, Vue and Go

screenshot

Running the example

  1. Run Solr in docker.
$ make solr

Or using podman.

$ DOCKER=podman make solr

The above commands starts Solr container and pre-creates multi-select-facet-demo collection.

Wait for a few seconds until Solr has completed loading.

  1. Run the API
// cd to api 
$ cd cmd/api

// build the api
$ go build -v

// start the api
$ ./api -init-schema -index-data -init-suggester
  1. Run the web app (open a new terminal tab)
// cd to web app folder
$ cd webapp

// install dependencies
$ yarn // or npm install

// start the web app
$ yarn serve // or npm run serve
  1. Open http://localhost:8080 in your browser and start playing with it!

Contributing

Please feel free to improve this by sending a PR or opening an issue.

License

MIT

Description
Languages
Go 63.2%
Vue 30.6%
HTML 3%
JavaScript 1.6%
Makefile 1.6%