Kentico filter duplicates in search

前端 未结 1 1079
误落风尘
误落风尘 2021-01-25 23:18

I have the following script to return search results of linked pages. I need to filter out the duplicates of the alias pages, as well as sort the results alphabetically. Current

相关标签:
1条回答
  • 2021-01-26 00:07

    In your DocumentQuery, add .FilterDuplicates() and it should remove those duplicate records for you. Keep in mind it will NOT bring back Linked Documents, only the main document.

    *** UPDATE *** Based on updated question, the query that you updated your question with looks like a Kentico generated query. I'm not sure why it was created but I'd set that repeaters visibility to false and add a new repeater on the page and set the properties as you see fit. Then update the WHERE conditions as needed.

    0 讨论(0)
提交回复
热议问题