Indexing Process in Solr
The Following post defines how exactly the Indexing process in Solr works.
When we take the Indexing part there are multiple ways we can achieve in Solr such as.
We will concentrate more on the first two pointers of Indexing.
Navigate to C:\Dev\solr-7.5.0\example\exampledocs
In this folder we have the sample xml and json files,using which we can use to Index the data.Also In the Same folder We have the post.jar that process these documents and Index it .
C:\Dev\solr-7.5.0\bin>java -jar -Dc=example -Dauto C:\Dev\solr-7.5.0\example\exampledocs\post.jar C:\MicroservicesPOC\solr-7.5.0\solr-7.5.0\example\exampledocs\ .*
Where -Dc is the name of the core.
-Dauto is the location where the post.jar resides.
This post.jar reads the collection and Index the documents given to it. But the condition here is that we have to follow the format the post.jar expects, otherwise the Indexing will not happen.
Happy Indexing!!!
When we take the Indexing part there are multiple ways we can achieve in Solr such as.
- Indexing using the post.jar
- Indexing using the dataImport handlers.
- Indexing by executing the curl commands.
We will concentrate more on the first two pointers of Indexing.
Indexing using the post.jar
As I already mentioned in previous posts that the Solr Ships with the exampleDocs from where we can do getting started.Navigate to C:\Dev\solr-7.5.0\example\exampledocs
In this folder we have the sample xml and json files,using which we can use to Index the data.Also In the Same folder We have the post.jar that process these documents and Index it .
C:\Dev\solr-7.5.0\bin>java -jar -Dc=example -Dauto C:\Dev\solr-7.5.0\example\exampledocs\post.jar C:\MicroservicesPOC\solr-7.5.0\solr-7.5.0\example\exampledocs\ .*
Where -Dc is the name of the core.
-Dauto is the location where the post.jar resides.
This post.jar reads the collection and Index the documents given to it. But the condition here is that we have to follow the format the post.jar expects, otherwise the Indexing will not happen.
Indexing using the dataImport handlers
For the Second way of Indexing checkout my detailed post here using the DataImport handler.Happy Indexing!!!