Type: New Feature
Affects Version/s: None
Fix Version/s: None
The AlertStream will return the top N "new" documents for a query from a SolrCloud collection. The AlertStream will track the highest version numbers from each shard and use these as checkpoints to determine new content.
The DaemonStream (
SOLR-8550) can be used to create "live" alerts that run at intervals. Sample syntax:
The DaemonStream can be installed in a SolrCloud worker node where it can llive and send out alerts.
The AlertStream will also accept an optional ModelStream which will apply a machine learning model to the alert. For example:
The ModelStream will return a machine learning model saved in a SolrCloud collection. Function queries for different model types will be developed so the models can be applied in the re-ranker or as a sort.
Custom decorator streams can be developed that take actions based on the AI driven alerts. For example the pseudo code below would run the function someAction on the Tuples emitted by the AlertStream.
While some SolrCloud worker collections are alerting and taking action, other worker collections can be learning models which can be applied for alerting. For example:
The pseudo code above calls the LogitStream (SOLR-8492) which would learn a Logistic Regression model and flow the model into a SolrCloud collection. The model can then be used for alerting and taking action on new data as it enters the system.