Introduction
Apache Solr is a highly scalable, enterprise-class, open-source search platform built on Apache Lucene [Apache Lucene]. It is used by ImageMaster to provide full-text search across all managed documents, including their binary attachments (PDF, Word, Excel, images, and more).
ImageMaster documents can have multiple binary attachments. Users expect a single search result per document when searching by full-text – not one result per attachment file. Standard Apache Solr creates one index document per extracted file, which would produce duplicate results, broken pagination, and incorrect hit counts. The ImageMaster extraction JAR (see Prerequisites) solves this by merging all attachments of a document into one Solr index document before it is committed.
In the following subsections, where separate sections are provided for Solr 9.x and Solr 10.x, consider only the subsections that apply to your specific version (9.x or 10.x).