This also works and I can see exactly which doc Type i'll be searching on and the fields it'll be checking.
This got me thinking.
With the basic Umbraco.ContentQuery search, does anyone know which
doc Types and fields get searched. Is it every single one in the site searched or is it more selective?
Which doctype and fields are searched
Hello all. I'm new to Umbraco and this is my first post on the forums.
I've created a basic search page and it's working fine. I'm using
Umbraco.ContentQuery.Search(searchQuery)
I've also created another search page using the following.
This also works and I can see exactly which doc Type i'll be searching on and the fields it'll be checking.
This got me thinking. With the basic Umbraco.ContentQuery search, does anyone know which doc Types and fields get searched. Is it every single one in the site searched or is it more selective?
Any pointers on this would be great.
Thanks. David.
Hi David,
By default, all doc types are searched but you can restrict Doc Types if you want it.
Below link shows how you can achieve it in Umbraco 8. https://our.umbraco.com/documentation/reference/searching/examine/indexing/
Cheers,
Shaishav
is working on a reply...