Skip to content

Apache Lucene open-source search software

SOLR-6127: move films example (data) to its own subdirectory

Erik Hatcherb520131e2343
diff --git a/solr/example/README.txt b/solr/example/README.txt
index 83f1a024bbf..fd7cb7d8966 100644
--- a/solr/example/README.txt
+++ b/solr/example/README.txt
@@ -38,12 +38,11 @@ After starting a Solr example, direct your Web browser to:
http://localhost:8983/solr/
-To add documents to the index, use the post.jar (or post.sh script) in
-the example/exampledocs subdirectory (while Solr is running), for example:
+To add documents to the index, use bin/post, for example:
- cd exampledocs
- java -jar post.jar *.xml
-Or: sh post.sh *.xml
+ bin/post techproducts example/exampledocs/*.xml
+
+(where "techproducts" is the Solr core name)
For more information about this example please read...
diff --git a/solr/example/exampledocs/README.txt b/solr/example/films/README.txt
similarity index 100%
rename from solr/example/exampledocs/README.txt
rename to solr/example/films/README.txt
diff --git a/solr/example/exampledocs/exampledocs_generator.py b/solr/example/films/film_data_generator.py
similarity index 98%
rename from solr/example/exampledocs/exampledocs_generator.py
rename to solr/example/films/film_data_generator.py
index 0f005173f9a..e09edd61068 100644
--- a/solr/example/exampledocs/exampledocs_generator.py
+++ b/solr/example/films/film_data_generator.py
@@ -18,7 +18,7 @@ This will generate a movie data set of 1100 records.
These are the first 1100 movies which appear when querying the Freebase of type '/film/film'.
Here is the link to the freebase page - https://www.freebase.com/film/film?schema=
-Usage - python3 exampledocs_generator.py
+Usage - python3 film_data_generator.py
"""
import csv
diff --git a/solr/example/exampledocs/films-LICENSE.txt b/solr/example/films/films-LICENSE.txt
similarity index 100%
rename from solr/example/exampledocs/films-LICENSE.txt
rename to solr/example/films/films-LICENSE.txt
diff --git a/solr/example/exampledocs/films.csv b/solr/example/films/films.csv
similarity index 100%
rename from solr/example/exampledocs/films.csv
rename to solr/example/films/films.csv
diff --git a/solr/example/exampledocs/films.json b/solr/example/films/films.json
similarity index 100%
rename from solr/example/exampledocs/films.json
rename to solr/example/films/films.json
diff --git a/solr/example/exampledocs/films.xml b/solr/example/films/films.xml
similarity index 100%
rename from solr/example/exampledocs/films.xml
rename to solr/example/films/films.xml