-
Notifications
You must be signed in to change notification settings - Fork 34
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
EZP-30951: Searching for Content with empty field will result on Error when using Solr #149
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs integration tests coverage.
And does this even work on LegacySearch? Afaik IsEmpty Criterion is the missing feature for this use case. |
@andrerom yeah, it works correctly in LegacySearch. |
Side note: failing tests are not related to this PR. |
@andrerom @alongosz I have a problem here which came out after I have written missing Integration Test - maybe you have any idea how to handle it: This part: https://github.com/ezsystems/ezplatform-solr-search-engine/pull/149/files#diff-01ed98326f3cd2df926d20e7b8386feeR69 doest exactly this: returns all documents that do not have field Therefore, currently, I don't see a way to fix it - or even if it is possible. The best way would be to handle The second approach would be to somewhat retrieve a list of ContentTypes, check which ones have this field defined and then add an additional condition for the query (ContentType) so behaviour would be the same as for Legacy, but I have no idea how to achieve it without a significant performance hit. A third possible approach is to leave it as it is, but with a note that it should only be used with Solar alongside Forth one is to create a custom Criterion, that would merge Field and ContentTypeIdentifier Critetions into one. WDYT? |
I'd suggest we setup a meeting for this, I'm not entirely following here. |
Close in favor #157 |
JIRA issue: https://jira.ez.no/browse/EZP-30951
This PR adds handling for Field Criterion where value
NULL
is passed forEQ
.