Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-12041

'keyword' and 'keyword_count' fetch function needs to be enhanced to avoide fetching same node multiple times

    XMLWordPrintable

Details

    Description

      Hi

      I am not sure if this issue is already reported before, but one of our customer gets this problem so I am reporting it here.

      We have fetch function fetch('Content', 'keyword_count' .......... ), which returns keyword count with wildcard(%) match, which is correct but we want some more filtering for e,g,

      Many places we really need the object count which has some particular keywords to display list of objects/nodes with the same keywords or all keywords and may be we need object/node count for google navigator as well.

      The place where fetch('Content', 'keyword_count' .......... ) fails is as follow.

      for e.g. if I create a object of article class and add following keywords to it.
      Skien, SkienEast,SkienWest.
      Then with same keyword called "Skien" the keyword count will be 3, where it is represented by only one object.

      In this case object count fails.

      I see these fetch functions are correct.
      http://ez.no/doc/ez_publish/technical_manual/3_10/reference/modules/content/fetch_functions/keyword
      http://ez.no/doc/ez_publish/technical_manual/3_10/reference/modules/content/fetch_functions/keyword_count

      but to serve above mentioned issues we may need some more keyword fetch function or need to enhance the same operator with some more filtering condition so it should be possible to avoid fetching duplicate nodes and duplicate node_count.

      Steps to reproduce

      This can also be checked from eZ Webin website interface for e.g.
      for e.g. if I create a object of article class and add following keywords to it.
      Skien, SkienEast, SkienWest.

      Now if you go to "Tags cloude" part of site and then move mouse pointer to the word "Skien", you will notice that
      it will say "Object count 3", while there is only one object with this word.

      Attachments

        Activity

          People

            sa sa
            gv gv
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: