concept example document in category solr

appears as: example documents, example documents, n example document, example document, The example documents, An example document
Solr in Action

This is an excerpt from Manning's book Solr in Action.

The post.jar file sends XML documents to Solr using HTTP POST. After all the documents are sent to Solr, the post.jar application issues a commit, which makes the example documents findable in Solr. To verify that the example documents were added successfully, go to the Query page in the Solr administration console (http://localhost:8983/solr) and execute the find all documents query (*:*). You need to select collection1 in the dropdown box on the left to access the Query page. Figure 2.5 shows what you should see after executing the find all documents query.

Figure 6.7. Search for drinking a latte on the analysis panel, and Solr will highlight matching terms drinking and latte in the example document.
Listing 11.1. Indexing example documents for e-commerce site
cd $SOLR_INSTALL/example/
cp -r $SOLR_IN_ACTION/example-docs/ch11/cores/ecommerce/ solr/ecommerce/
java -jar start.jar
cd $SOLR_IN_ACTION/example-docs/
java -Durl=http://localhost:8983/solr/ecommerce/update
  -jar post.jar ch11/documents/ecommerce.xml