Hafiz Muhammad Shafiq
Hafiz Muhammad Shafiq

Reputation: 8678

How to add index terms manually in apache solr

I want to add a documents information in solr so that I can search it for a case. How I can do it?

Upvotes: 1

Views: 1512

Answers (2)

Hafiz Muhammad Shafiq
Hafiz Muhammad Shafiq

Reputation: 8678

There is a file post.sh (or post.jar) in example/exampledoc in solr. Your document should be in xml, csv,json formats that you want to index.then run the following command to index data in solr.

./post.sh myfile.xml

you can also use post.jar. For further help, consult here

Upvotes: 0

zerologiko
zerologiko

Reputation: 2111

The easiest way to add documents to a Solr core is using the administration console:

  1. open the Solr administration console at http://solr-host:port/solr/
  2. select a core from the "Core selector" dropdown menu
  3. click on "Documents" to add documents in the format you need (XML, JSON, etc)
  4. click on "Submit Document" to add your document to the core.
  5. Then you can see all the documents using "Query" menu.

Solr add and update documents using admin console

Upvotes: 1

Related Questions