Uploaded image for project: 'Hippo Site Toolkit 2'
  1. Hippo Site Toolkit 2
  2. HSTTWO-3131

Searching on a compound results in 3 documents

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: 2.28.08
    • Component/s: None
    • Labels:
      None
    • Similar issues:

      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");

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mproce Michiel Procé (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: