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 ?
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 ?
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 ?
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
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 ?
is working on a reply...