Uploaded image for project: 'Red Hat Developer Website'
  1. Red Hat Developer Website
  2. DEVELOPER-1483

Correct DCP query on buzz pages

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Q2FY16
    • None
    • None

      The DCP query on buzz pages has a bug in query parameter.
      For example on EAP page hits this:
      http://dcp2.jboss.org/v2/rest/search?field=sys_url_view&field=sys_title&field=sys_contributors&field=sys_description&field=sys_created&field=author&field=sys_tags&field=sys_content_id&query=sys_tags%3Ae+a+p&size=8&sys_type=blogpost&sortBy=new-create&query_highlight=true&from=0

      you can see those "+" characters which are invalid.

      The filter parameter "eap" cannot have plus characters and also it needs to be passed to the tags parameter instead of query parameter. See more info to reference docs: http://docs.jbossorg.apiary.io/#searchapi

      So for EAP buzz page correct dcp query is:
      http://dcp2.jboss.org/v2/rest/search?field=sys_url_view&field=sys_title&field=sys_contributors&field=sys_description&field=sys_created&field=author&field=sys_tags&field=sys_content_id&tag=eap&size=8&sys_type=blogpost&sortBy=new-create&from=0

      I also removed query_highlight parameter which is not used.

              paul.robinson@redhat.com Paul Robinson
              lkrzyzan@redhat.com Libor Krzyzanek
              Archiver:
              rhn-support-ceverson Clark Everson

                Created:
                Updated:
                Resolved:
                Archived: