mkhludnev opened a new pull request, #5224:
URL: https://github.com/apache/solr/pull/5224

   https://issues.apache.org/jira/browse/SOLR-18585
   This pull request adds support for a new `script` filter operator to the 
Intervals Query Parser in Solr. This operator allows users to filter intervals 
using Lucene Expressions scripts, with access to interval-specific variables 
such as `interval.start`, `interval.end`, and `interval.gap`. The 
implementation includes backend support, comprehensive tests, and documentation 
updates.
   
   **Intervals Query Parser Enhancements:**
   
   * Added support for the `script` filter operator in the Intervals Query 
Parser, enabling interval filtering based on Lucene Expressions evaluated with 
`interval.start`, `interval.end`, and `interval.gap` variables. 
[[1]](diffhunk://#diff-349ecb1aad2824246e4959acb3b629d48d7b375df4816ee45e140a5145390456L437-R440)
 
[[2]](diffhunk://#diff-349ecb1aad2824246e4959acb3b629d48d7b375df4816ee45e140a5145390456R460-R491)
 
[[3]](diffhunk://#diff-2972b766e0c91ecc02992a6fda59c171b022a9d803af37ede4751964a774b736R1-R172)
   
   **Testing:**
   
   * Added unit and distributed tests to verify the correct behavior of the 
`script` filter operator, including handling of valid scripts, combined 
variable expressions, invalid scripts, and unknown variables. 
[[1]](diffhunk://#diff-23daaf6773e9b21b239bdd3989e0b0c8490408479fa9a831b5951953452c22ceR211-R292)
 
[[2]](diffhunk://#diff-ec02755a65648a1393267be481208643fd7d1c60834284719565033b32ce7842R447-R529)
   
   **Documentation:**
   
   * Updated the reference guide to document the new `script` filter operator, 
its usage, and examples illustrating how to use interval variables in 
expressions. 
[[1]](diffhunk://#diff-38a60470f42e68a5c884a9c9b8c438d8f886d33dd8a72d07c3ffd289eec9a682L667-R667)
 
[[2]](diffhunk://#diff-38a60470f42e68a5c884a9c9b8c438d8f886d33dd8a72d07c3ffd289eec9a682R696-R698)
 
[[3]](diffhunk://#diff-38a60470f42e68a5c884a9c9b8c438d8f886d33dd8a72d07c3ffd289eec9a682R715-R761)
   
   **Changelog:**
   
   * Added a changelog entry describing the addition of the script filter 
operator to the Intervals QParser.
   
   <!--
   _(If you are a project committer then you may remove some/all of the 
following template.)_
   
   Before creating a pull request, please file an issue in the ASF Jira system 
for Solr:
   
   * https://issues.apache.org/jira/projects/SOLR
   
   For something minor (i.e. that wouldn't be worth putting in release notes), 
you can skip JIRA.
   To create a Jira issue, you will need to create an account there first.
   
   The title of the PR should reference the Jira issue number in the form:
   
   * SOLR-####: <short description of problem or changes>
   
   SOLR must be fully capitalized. A short description helps people scanning 
pull requests for items they can work on.
   
   Properly referencing the issue in the title ensures that Jira is correctly 
updated with code review comments and commits. -->
   
   
   # Description
   
   Please provide a short description of the changes you're making with this 
pull request.
   
   # Solution
   
   Please provide a short description of the approach taken to implement your 
solution.
   We appreciate transparent disclosure of significant [AI Coding 
assistants](https://github.com/apache/solr/blob/main/dev-docs/how-to-contribute.adoc#setup-for-contributing)
 usage.
   
   # Tests
   
   Please describe the tests you've developed or run to confirm this patch 
implements the feature or solves the problem.
   
   # Checklist
   
   Please review the following and check all that apply:
   
   - [ ] I have reviewed the guidelines for [How to 
Contribute](https://github.com/apache/solr/blob/main/CONTRIBUTING.md) and my 
code conforms to the standards described there to the best of my ability.
   - [ ] I have created a Jira issue and added the issue ID to my pull request 
title.
   - [ ] I have given Solr maintainers 
[access](https://help.github.com/en/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork)
 to contribute to my PR branch. (optional but recommended, not available for 
branches on forks living under an organisation)
   - [ ] I have developed this patch against the `main` branch.
   - [ ] I have run `./gradlew check`.
   - [ ] I have added tests for my changes.
   - [ ] I have added documentation for the [Reference 
Guide](https://github.com/apache/solr/tree/main/solr/solr-ref-guide)
   - [ ] I have added a [changelog 
entry](https://github.com/apache/solr/blob/main/dev-docs/changelog.adoc) for my 
change
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to