Skip to content
Don Richards edited this page Nov 23, 2021 · 2 revisions

Things to do with Solr

"Major features include full-text search, hit highlighting, faceted search, real-time indexing, dynamic clustering, database integration, NoSQL features and rich document handling." - Apache

Solr's index is called an "inverted index" because it inverts a page-centric data structure (page->words) to a keyword-centric data structure (word->pages). Solr stores this index in a directory called index in the data directory. See Basic Solr Concepts for a comprehensive definition and context.

In Solr, a Document is the unit of search and index. But in simple terms "In database terminology, a Document corresponds to a table row, and a Field corresponds to a table column."

Fields, filters, tokenizers

...

Random Stuff

Locate IP of solr server docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' docker_solr_1

Get list of fields in core named "default". curl http://$(docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' docker_solr_1):8983/solr/default/schema/fields

Solr's status docker-compose exec solr bash -lc 'bin/solr status | grep running'

Tutorials

  1. http://www.solrtutorial.com/basic-solr-concepts.html
  2. https://www.youtube.com/playlist?list=PL6YwPExkSESo9FfA2msf2Wi9FC-0-JQRz