Start here: http://lucene.apache.org/solr/quickstart.html
Search for "Indexing Solr XML" and perform the steps indicated.
In the end, you could browse the documents indexed at http://localhost:8983/solr/gettingstarted/browse. That is how the output you are interested looks like. Of courser, replace "localhost" with your case host in the URL. The /browse
UI view defaults to assuming the gettingstarted
schema and data are a catch-all mix of structured XML, JSON, CSV example data, and unstructured rich documents. Your own data may not look ideal at first, though the /browse
templates are customizable.