Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ONPREM-1444 Enhance populateElasticEntries.php to support range filtering for INT_ID #13115

Draft
wants to merge 1 commit into
base: Ursa-21.9.0
Choose a base branch
from

Conversation

GElkayam
Copy link
Member

@GElkayam GElkayam commented Feb 2, 2025

No description provided.

@@ -11,8 +11,14 @@
$c->add(entryPeer::PARTNER_ID, $argv[2], Criteria::EQUAL);
if($argc > 3 && is_numeric($argv[3]))
$c->add(entryPeer::INT_ID, $argv[3], Criteria::GREATER_EQUAL);
if($argc > 4)
if($argc > 4 && $argv[4] != '')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so to get this you need to pass "" as this param?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in order to skip 4 and be able to get to 5, without changing whatever 4 is doing, I overlook when sending "" as parameter

}
if($argc > 5 && is_numeric($argv[5]))
{
$c->addAnd(entryPeer::INT_ID, $argv[5], Criteria::LESS_THAN);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To match the greater condition shouldn't this be LESS_EQUAL

Copy link
Member Author

@GElkayam GElkayam Feb 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, as I want to have from one number to the other.
1000-2000
2000-3000
3000-4000

without doing a -1 to handle the edges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants