ext-solr
ext-solr copied to clipboard
[TASK] Allow using complex filter values introduced by round brackets
By not escaping filter values starting with double quotes you can define complex filter conditions also in request parameters.
I needed this function for a project and thought it could be useful for anybody else.
This is a very naive approach and I don't know if the filter values have to be checked or escaped again.
@lgescobar Thanks for the pr. I think we should add a testcase for that and also merge it into master to have it available in latest versions as well. Could you proceed on that?
I'll give it a try!
I think it's a good idea, you have to add code also in the ConfigurationService to allow complex clause on flexForm filters (the method is "getFilterFromFlexForm".
In fact I need to use "OR" clause on the pid to simulate the "storagePid" behaviour.
@echavaillaz @lgescobar This pull request is outdated, the sources are changed, so the rebase or cherry-pick are not possible. Could you please provide the new implementation for main branch?
I'll close this pull request in favor of new issue: #3643