Apache Lucene is the open-sourced search library that powers OpenSearch and many search applications large and small.
We start the meeting with a Lucene learning topic or Q&A session. In the second half of the meeting, we review recent developments in Apache Lucene and discuss their potential impact to OpenSearch, with a particular focus on new and exciting Lucene features that we can (and should) expose through OpenSearch. Since some changes require a deep dive to fully understand, we sometimes ask participants to volunteer for “homework” to dig deeper into changes and report back for the next meeting.
Standing Agenda:
Welcome / introduction (5 minutes)
Lucene learning series - someone will either present a Lucene-related talk or we will do Lucene Q&A (20 minutes, recorded)
Review assigned issues from last time (10 minutes)
Review new Lucene changes and assign homework (20 minutes)
By joining the OpenSearch Lucene Study Group Meeting, you grant OpenSearch, and our affiliates the right to record, film, photograph, and capture your voice and image during the OpenSearch Community Meeting (the “Recordings”). You grant to us an irrevocable, nonexclusive, perpetual, worldwide, royalty-free right and license to use, reproduce, modify, distribute, and translate, for any purpose, all or any part of the Recordings and Your Materials. For example, we may distribute Recordings or snippets of Recordings via our social media outlets.
Proposed topic for discussion: Could we build a Solr compatibility layer on top of OpenSearch?
Abstract: Solr is a search server that interfaces really well with Lucene (which makes sense, since they were a single Apache project for years). The Solr component abstractions are nice and powerful. There are lots of reasons why folks have adopted Solr over the years. On the other hand, OpenSearch is probably a better distributed solution than SolrCloud (though I’m obviously biased). What if people could have both? I think it would be possible (but not easy) to create an OpenSearch plugin that “runs” Solr on top of OpenSearch. Suppose the plugin exposes a special “create index” API that takes a Solr schema and config, translates the schema into an OpenSearch mapping, and creates an OpenSearch index. (The config is harder, but UpdateRequestProcessors could be integrated with ingest pipelines and SearchComponents could be integrated with some combination of search plugins and search pipelines. wavy hands ) At query time, the plugin could use Solr itself (as a library) to translate Solr requests into Lucene logic that we would execute against OpenSearch index shards.
PointRangeQuery now exits earlier on segments whose values don't intersect with the query range. When a PointRangeQuery is a required clause of a boolean query, this helps save work on other required clauses of the same boolean query.
ReqOptSumScorer will now propagate minimum competitive scores to the optional clause if the required clause doesn't score. In practice, this will help boolean queries that consist of a mix OF FILTER clauses and SHOULD clauses.