Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Won't Fix
-
None
-
None
-
None
Description
At the bottom of the HstQuery FIlter documentation at http://www.onehippo.org/library/concepts/search/2-hstquery-filter.html it is explained you can filter in a compound using a slash . Example: filter.addContains("address/example:street", query);
We're using this feature to filter on links. Example:
filter.addEqualTo("test:test/hippo:docbase", "553e81db-2de6-47db-9d46-3382662693a9");
The above code returns 3 times the documents expected. It appears it returns an instance for each stage of publication.
A workaround is to explicitly filter in the published documents, like this:
filter.addEqualTo("hippostd:state", "published");