Professional Documents
Culture Documents
UDLEDGE - Apache Solr - Java Plugin Development
UDLEDGE - Apache Solr - Java Plugin Development
Solr is the popular, blazing-fast, open source enterprise search platform built on
Apache Lucene.
Solr is highly reliable, scalable and fault tolerant, providing distributed indexing,
replication and load-balanced querying, automated fail-over and recovery,
centralized configuration and more. Solr powers the search and navigation features
of many of the world's largest internet sites.
Page 1 of 5
UDLEDGE - Apache Solr - Java Plugin Development
Page 2 of 5
UDLEDGE - Apache Solr - Java Plugin Development
Click on “Add Field” button as selected on the previous image.It will show the
following interface:
Define the following fields using the above interface. For each field, after
specifying the various attributes, click on “Add Field” button to save the field to
the selected schema.
We will be making use of the Solr Admin panel, to Add, Select & Delete records
to our core “my_test_core”.
In order to do so, we need to access “Documents” option from the left panel
under the selected core.
This will option a new interface which we will be making use to perform the
following set of actions:
Add new documents to the core.
Delete existing documents from the selected core.
Page 3 of 5
UDLEDGE - Apache Solr - Java Plugin Development
As depicted above, first click on “Documents” and then select “Solr Command”
under “Document Type” drop-down option.
Enter the following XML document to create a new document in the core.
<add>
<doc>
<field name="Author_name">Heartine Lazar</field>
<field name="Author_age">42</field>
<field name="Author_Country_Code">IN</field>
</doc>
</add>
Click on “Submit Document” button. Similarly add one more XML document
entry
<add>
<doc>
<field name="Author_name">ritesh kumar</field>
<field name="Author_age">42</field>
<field name="Author_Country_Code">in</field>
</doc>
</add>
To view the added documents, click on the “Query” option from the left panel.
Once the query interface is open, click on the “Execute Query” button to get the
list of documents saved in the core.
You will be presented with an JSON based output for the stored documents.
Page 4 of 5
UDLEDGE - Apache Solr - Java Plugin Development
Contact Information
Name : Heartine Lazaar
Mobile : 011-3708-9492
Email : hlaazar@gmail.com
Company : www.udledge.com
Page 5 of 5