mirror of
https://github.com/apache/lucene.git
synced 2025-02-13 13:35:37 +00:00
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1652721 13f79535-47bb-0310-9956-ffa450edef68
16 lines
546 B
Plaintext
16 lines
546 B
Plaintext
bin/solr stop
|
|
rm -Rf server/solr/files/
|
|
|
|
# templates extracted with:
|
|
# unzip -j dist/solr-velocity-*.jar velocity/* -x *.properties -d example/files/templates/
|
|
bin/solr start -Dvelocity.template.base.dir=<absolute path to example/files/templates>
|
|
# TODO: make it so an install dir relative path can be used somehow?
|
|
bin/solr create_core -c files
|
|
bin/post -c files ~/Documents
|
|
curl http://localhost:8983/solr/files/config/params -H 'Content-type:application/json' -d '{
|
|
"update" : {
|
|
"facets": {
|
|
"facet.field":"content_type"
|
|
}
|
|
}
|
|
}' |