Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Christoffer Frede 35 posts 145 karma points
    May 07, 2021 @ 08:02
    Christoffer Frede
    0

    Umbraco.ContentQuery exclude content field from search.

    Hi All. i have created a search page using Umbraco.ContentQuery and i can search through my content pages. however i created field on many of my document types that is called module name, that is only used for backend naming. i dont want those fields to be searchable via a frontend search. so the question is, can i exclude a specific field on many doc types using Umbraco.ContentQuery.Search() and how would i do it ?

  • Huw Reddick 1932 posts 6722 karma points MVP 2x c-trib
    May 07, 2021 @ 09:31
    Huw Reddick
    0

    I think you will need to override the index creation in order to exclude the fields (unless anyone else knows better :) )

    https://our.umbraco.com/documentation/reference/searching/examine/indexing/#overriding-index-creation

  • Christoffer Frede 35 posts 145 karma points
    May 10, 2021 @ 06:18
    Christoffer Frede
    0

    hi Huw. thank you for the tip. i am just not sure how i add/integrate composers on the website. i havent tried adding them before. do i just add a folder and create the composers in there with that namespace ?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies