Uploaded image for project: '[Read Only] - Hippo Site Toolkit 2'
  1. [Read Only] - Hippo Site Toolkit 2
  2. HSTTWO-3131

Searching on a compound results in 3 documents

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Won't Fix
    • None
    • 2.28.08
    • 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");

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: