Closed billerby closed 11 years ago
closing it again since it seems the reason for me not getting any hits was lucene stemming rules in this case. Still a bit confused by the property naming though...
Hello guys, could someone elaborate this issue a bit. I am not getting filters on person fields to work on 4.2c. Empty Result set is the result. @billerby : How is this issue connected with stemming rules and how have you solved it?
@IljaSchumacher I really don't remember exactly what my problem was, however I'm in the middle of using this addon once again with some major customizations. Are you using solr or lucene? I'm on a solr install now and the assignee filter seems to work at this moment for me.
@billerby I am on a 4.2c Solr install. Actually solr complains about non-incremental model update TYPE in the log files. To get rid of this error i tried to disable ModelValidation via property "doValidation" of the "modelDictionaryType" bean in policy-context.xml. But it did not help because Solr is doing its own validation that can not be switched off.
Another thing i tried was switching the search subsystem from solr to lucene via alfresco-global.properties but it did not do any good either.
Did you use the recent version of the extension or do you use an older one?
Also see this Issue https://github.com/deas/fme-alfresco-extdl/issues/6
I'm on the latest version, do the other search parameters work? I tried to create a simple task list, added some items and filtered on id and it works for me. I think you will have to find out how the query looks that is sent to solr. The files filters.lib.js and data.post.json.js is the one responsible on the repository files (ie doing the acutal filtering)
Filtering datalistitems with assignee property set, does not result in any hits.
Reason seems to be that the name of the property "dltaskAssignee" are not converted correctly somewhere in the call chain, all other properties are prepended with "prop" which is not the case for dl_taskAssignee. I have yet not figured out where this prepending is done in the code.
Request payload sent to repo:
{"fields": ["dl_itemId","cm_title","cm_description","dl_ganttStartDate","dl_ganttEndDate","dl_taskAssignee","dl_taskPriority","dl_taskStatus","dl_ganttPercentComplete","cm_attachments","fm_discussable"], "filter":{"filterId":"filterform","filterData":{"prop_dl_itemId":"","prop_cm_title":"","prop_cm_description":"","dl_assigneeFullName":"Victor","prop_dl_taskPriority":"High,Normal,Low","prop_dl_taskStatus":"Not Started,In Progress,Complete,On Hold","prop_dl_ganttPercentComplete":"0","prop_cm_creator":"viktor.jacobs","prop_dl_ganttStartDate-date-range":"","prop_dl_ganttEndDate-date-range":"","prop_cm_created-date-range":""}}}