README.txt 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. # Licensed to the Apache Software Foundation (ASF) under one or more
  2. # contributor license agreements. See the NOTICE file distributed with
  3. # this work for additional information regarding copyright ownership.
  4. # The ASF licenses this file to You under the Apache License, Version 2.0
  5. # (the "License"); you may not use this file except in compliance with
  6. # the License. You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. Solr example
  16. ------------
  17. This directory contains Solr examples. Each example is contained in a
  18. separate directory. To run a specific example, do:
  19. bin/solr -e <EXAMPLE> where <EXAMPLE> is one of:
  20. cloud : SolrCloud example
  21. dih : Data Import Handler (rdbms, mail, atom, tika)
  22. schemaless : Schema-less example (schema is inferred from data during indexing)
  23. techproducts : Kitchen sink example providing comprehensive examples of Solr features
  24. For instance, if you want to run the Solr Data Import Handler example, do:
  25. bin/solr -e dih
  26. To see all the options available when starting Solr:
  27. bin/solr start -help
  28. After starting a Solr example, direct your Web browser to:
  29. http://localhost:8983/solr/
  30. To add documents to the index, use bin/post, for example:
  31. bin/post -c techproducts example/exampledocs/*.xml
  32. (where "techproducts" is the Solr core name)
  33. For more information about this example please read...
  34. * example/solr/README.txt
  35. For more information about the "Solr Home" and Solr specific configuration
  36. * https://lucene.apache.org/solr/guide/solr-tutorial.html
  37. For a Solr tutorial
  38. * http://wiki.apache.org/solr/SolrResources
  39. For a list of other tutorials and introductory articles.
  40. Notes About These Examples
  41. --------------------------
  42. * References to Jar Files Outside This Directory *
  43. Various example SolrHome dirs contained in this directory may use "<lib>"
  44. statements in the solrconfig.xml file to reference plugin jars outside of
  45. this directory for loading "contrib" plugins via relative paths.
  46. If you make a copy of this example server and wish to use the
  47. ExtractingRequestHandler (SolrCell), DataImportHandler (DIH), the
  48. clustering component, or any other modules in "contrib", you will need to
  49. copy the required jars or update the paths to those jars in your
  50. solrconfig.xml.
  51. * Logging *
  52. By default, Jetty & Solr will log to the console and logs/solr.log. This can
  53. be convenient when first getting started, but eventually you will want to
  54. log just to a file. To configure logging, edit the log4j2.xml file in
  55. ".../server/resources".
  56. It is also possible to setup log4j or other popular logging frameworks.