Chapter 4. Indexing Data – The Basic Technique and Using Index Handlers
In the previous chapter, we saw how Solr provides us with a way to index data using a schema. This chapter will cover techniques that can be used to index data in Solr. There are many ways of sending data to Solr using API or by making a POST
call to update handlers. We'll cover the following topics in this chapter:
- Inserting data into Solr using basic POST tools
- Using XML and JSON handlers
Inserting data into Solr
Solr provides an easy-to-use command-line tool for sending data in various formats to the Solr server. We can use the post.jar
or post.sh
tool to send data to the Solr server to index data. Both of these tools are located in %SOLR_HOME%/example/exampledocs
in the default ...
Get Apache Solr for Indexing Data now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.