This does not work with collective.collectionfilter
If I add an indexer and saves it to the index as string, it works with collective.collectionfilter.
But, then it does not work with plone.app.querystring (int.largerThan and .lessThan
Is there a 'good' workaround for this. My current approach is to have two indexes and and another (hidden) field, since c.collectionfilter needs both the field and an index with the same name
Ops ... there is no IntegerIndex ... aha, thats why there's the global. plone.app.querystring defines the IQueryOperations in the registry and maps them to the indexes. This would be the prefered solution for collectionfilter too, to add a registry field with "integer_indexes"
When I tried to work around this problem, it looks like the catalog index became 'ints' if my field was int. If I remember right, this is what happened:
I made a field (type 'int') and a FieldIndex, did not work with collective.collectionfilter
I made a field (type 'string') and a FieldIndex and a Field index and added an item with value '1'. Then I changed the type of the field to 'int', added another content item. It would produce an error 'can not convert int to string' or something similar.
Could there be a way to check a (Field) index to see if it 'is int' ?
Cool! PR would be great, but if you don't mind, instead of forking the report, please create the branch directly on the collective organization, so others can collaborate better with your changes. If PR created, feel free to add me as reviewer.