2020-06-09 19:15:43 +08:00
# Multi-Select Facet Example
2021-11-04 09:05:29 +08:00
An example of multi-select facet using [Solr ](https://solr.apache.org ), [Vue ](https://vuejs.org ) and [Go ](http://go.dev/ ).
2020-06-09 19:15:43 +08:00
2021-11-04 09:05:29 +08:00
Blog post: [Multi-Select Facet with Solr, Vue and Go ](https://stevenferrer.github.io/posts/multi-select-facet-solr-vue-go/ )
2020-06-30 16:07:03 +08:00

2020-06-13 23:21:28 +08:00
## Running the example
2020-06-09 19:15:43 +08:00
2021-02-10 09:52:07 +08:00
1. Run Solr using [podman ](https://podman.io/ ).
2020-06-30 16:07:03 +08:00
```console
2021-02-10 09:52:07 +08:00
$ make start-solr
2020-06-30 16:07:03 +08:00
```
2020-10-19 18:35:21 +08:00
2021-02-10 09:52:07 +08:00
Or using `docker` .
2020-10-19 18:35:21 +08:00
```console
2021-02-10 09:52:07 +08:00
$ PODMAN=docker make start-solr
2020-10-19 18:35:21 +08:00
```
2020-06-30 16:07:03 +08:00
2. Run the API
```console
2020-09-28 12:34:51 +08:00
// build the api
2021-02-10 09:52:07 +08:00
$ go build -v -o api
2020-09-28 12:34:51 +08:00
2021-02-10 09:52:07 +08:00
// start the api with the initialization options
$ ./api -create-collection -init-schema -index-data -init-suggester
2020-06-30 16:07:03 +08:00
```
3. Run the web app (open a new terminal tab)
```console
2020-09-28 12:34:51 +08:00
// cd to web app folder
$ cd webapp
// install dependencies
$ yarn // or npm install
// start the web app
$ yarn serve // or npm run serve
2020-06-30 16:07:03 +08:00
```
4. Open http://localhost:8080 in your browser and start playing with it!
## Contributing
2021-11-04 09:05:29 +08:00
Feel free to improve this project by [make a pull-request ](https://github.com/stevenferrer/multi-select-facet/pulls ) or [opening an issue ](https://github.com/stevenferrer/multi-select-facet/issues ).
2020-06-30 16:07:03 +08:00
2020-06-30 17:22:05 +08:00
## License
MIT