Forum Discussion

clemlith's avatar
clemlith
Expert
13 years ago

Limit the number of post in RSS feed

Hi everyone,

 

I noticed that there is a rss feed related to search.

I find this very helpful.

Il would like to know if there is a parameter which enable me to only have the 5 first result of the rss search feed ?

 

I have tried to add "page_size=5" at the end of the URL but it has nos effect

http://community/communityname/rss/search?filter=solvedThreads&search_type=thread&solved=true&page_size=5

 

Do you have any thought about this ?

Thanks in advance

 

Note : I know that this easily feasible through the API but I need to use RSS.

 

 

4 Replies

  • YuriK's avatar
    YuriK
    Khoros Expert
    13 years ago

    Hey clemlith,

     

    Depending on the RSS reader users are using, they may have a setting on it specifying the maximum number of posts.

     

    If you want a community setting for a specific feature, this can currently only be done by a configuration at the community level for the feature (i.e. set maximum results for all search rss feeds to 5). You would have to contact support to get this set up for your community.

     

    Hope this helps,

     

    Yuri

  • clemlith's avatar
    clemlith
    Expert
    12 years ago

    Hi YuriK,

    Apologies for the late reply.

    Thanks for you answer.

    Actually I did use the API to find a workaround because the option of limiting all search rss feeds to 5 was a little bit restrictive.

     

    Clement

  • YuriK's avatar
    YuriK
    Khoros Expert
    12 years ago
    Glad you were able to find a workaround!

    Thank you,

    Yuri
  • YuriK's avatar
    YuriK
    Khoros Expert
    9 years ago

    Looks like there is a way to do this. You just need to pass in "count" as a request parameter.

    http://community/communityname/rss/search?filter=solvedThreads&search_type=thread&solved=true&count=5