From b520131e2343675db47b5bc2ea0754aa61ac288d Mon Sep 17 00:00:00 2001 From: Erik Hatcher Date: Tue, 30 Dec 2014 15:24:28 +0000 Subject: [PATCH] SOLR-6127: move films example (data) to its own subdirectory git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1648540 13f79535-47bb-0310-9956-ffa450edef68 --- solr/example/README.txt | 9 ++++----- solr/example/{exampledocs => films}/README.txt | 0 .../film_data_generator.py} | 2 +- solr/example/{exampledocs => films}/films-LICENSE.txt | 0 solr/example/{exampledocs => films}/films.csv | 0 solr/example/{exampledocs => films}/films.json | 0 solr/example/{exampledocs => films}/films.xml | 0 7 files changed, 5 insertions(+), 6 deletions(-) rename solr/example/{exampledocs => films}/README.txt (100%) rename solr/example/{exampledocs/exampledocs_generator.py => films/film_data_generator.py} (98%) rename solr/example/{exampledocs => films}/films-LICENSE.txt (100%) rename solr/example/{exampledocs => films}/films.csv (100%) rename solr/example/{exampledocs => films}/films.json (100%) rename solr/example/{exampledocs => films}/films.xml (100%) 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