Skip to content
JackSparrow414

Using Solr

Setup and queries, data imports, SolrJ, Spring Data Solr, and command-line usage.

5 posts · In reading order

  1. Using Solr (Part 1): Installation, Core Management, Queries, and Fixing CoreContainer Initialization Errors

    Introduces Solr installation and startup, custom cores and field configuration, and demonstrates adding, querying, and deleting data through the console and curl. It also covers stopping Solr, deleting cores, and checking the core name when copied configuration causes a CoreContainer initialization failure.

  2. Using Solr (Part 2): Full and Incremental Imports from MySQL

    Explains how to configure Solr DataImportHandler for full and incremental imports from MySQL and periodically refresh data with operating-system scheduled jobs. It also covers tinyint fields, multivalued fields, and Transformers, and outlines DIH components and changes in later versions.

  3. Using Solr (Part 3): SolrJ in an Application

    Java examples introduce SolrJ dependency configuration, entities annotated with Field, and a shared SolrClient wrapper. The article demonstrates adding, updating, deleting, and querying data, verifies the results in the Solr console, and explains why the core must be specified when committing.

  4. Using Solr (Part 4): Spring Data Solr in Real Applications, with Practical Code Examples

    Uses practical examples to introduce Spring Data Solr configuration, entity mapping, CRUD, and pagination, and demonstrates queries using @Query and SolrTemplate. It also discusses extending custom repositories, using transactions, and checking query statements through logging.

  5. Using Solr (Part 5): A Complete Command-Line Workflow and HTML Tag Filtering

    Command-line and curl examples demonstrate a complete Solr workflow: managing cores and fields, CRUD operations, pagination, and conditional queries. The article also configures HTML tag filtering for rich-text searches and explains copyField and fieldType.