concept Solr in category AI

This is an excerpt from Manning's book AI-Powered Search.
Solr is also open source and is actually part of the Apache Lucene project, so it is likewise owned and maintained by the Apache Software Foundation. The source code for the combined "Lucene-Solr" project is found within the same public Git repository, and the same developers are officially committers on both projects. Whereas Lucene provides the core libraries and data structures to build a search engine, Solr provides an out of the box search server brimming with production-ready capabilities.
While we won’t go deep into all the capabilities of Solr in this book (Solr in Action took 638 pages, and that was back in 2014!), suffice it to say that 90% of the Fortune 500 use Solr to power some of the most advanced search applications in the world, and it is very feature-rich and well-suited for building an AI-powered search application.
Listing 10.17. Uploading model to Solr with normalization and weights for each feature.
PUT http://aips-solr:8983/solr/tmdb/schema/model-store { "store": "movies", "class": "org.apache.solr.ltr.model.LinearModel", "name": "movie_titles", "features": [ { "name": "title_bm25", "norm": { "class": "org.apache.solr.ltr.norm.StandardNormalizer", "params": { "avg": "1.5939970007512951", "std": "3.689972140122766" } } }, { "name": "overview_bm25", "norm": { "class": "org.apache.solr.ltr.norm.StandardNormalizer", "params": { "avg": "1.4658440933160637", "std": "3.2978986984657808" } } }, { "name": "release_year", "norm": { "class": "org.apache.solr.ltr.norm.StandardNormalizer", "params": { "avg": "1993.3349740932642", "std": "19.964916628520722" } } } ], "params": { "weights": { "title_bm25": 0.4491741700850341, "overview_bm25": 0.31118624504321124, "release_year": 0.13971710392127754 } } }