-
Notifications
You must be signed in to change notification settings - Fork 1
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
Should ExtendedPathIndex
be usable for arbitrary paths?
#12
Comments
As apparently "There is an assumption about all indexed values having the same common base path", why not use this systematically (rather than only during querying): make the common base path explicit and do not index that part (and verify that the assumption is met). |
I did not get what's the problem here. I don't think its a good idea to bind functionality to an attribute name. It works well for an UUID based index in https://github.com/plone/plone.app.multilingualindexes/ |
In the normal setup,
|
ExtendedPathIndex
has some features which indicate that it targets arbitrary paths and not only those derived fromgetPhysicalPath
:multi_valued
.If so, then the following optimisation is (likely) wrong:
As the comment indicates, the index assumes that all paths have a common base path. In the code above, it is heuristically determined based on
getPhysicalPath
. However, this is correct only when the paths are derived fromgetPhysicalPath
and are not "arbitrary" paths.The optimisation should therefore only be applied when the indexed attribute is
getPhysicalPath
The text was updated successfully, but these errors were encountered: