opensolr_search
Retrieve the most relevant documents from an OpenSolr index using hybrid, semantic, or lexical search modes. Filter results, adjust relevance balance, and apply recency bias for fresh results.
Instructions
Search an Opensolr index and return the k most relevant documents.
search_mode: "hybrid" (default — BM25 + semantic kNN fused per document),
"semantic" (pure kNN), or "lexical" (pure keyword edismax — no embedding
call, zero AI quota, works on ANY index including non-vector ones).
For hybrid: mode is union / keywords_required / meaning_required /
intersection, alpha balances semantic (0) vs lexical (1).
filter_query accepts a raw Solr fq expression, e.g. 'meta_category:"docs"'.
fresh_bias biases the ranking toward recent documents by multiplying each
score by a recency curve on creation_date. It re-orders and never filters:
the hit count is unchanged, nothing old becomes unreachable, and a document
with no creation_date is simply left unboosted. Works in all three search
modes. Off by default — turn it on when newer should beat older on a tie.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | ||
| mode | No | union | |
| alpha | No | ||
| index | Yes | ||
| query | Yes | ||
| fresh_bias | No | ||
| search_mode | No | hybrid | |
| filter_query | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |