Copied to clipboard

Flag this post as spam?

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


  • David Little 2 posts 72 karma points
    Oct 09, 2019 @ 14:09
    David Little
    0

    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.

    searcher.CreateQuery("content").NodeTypeAlias("contentPage").And().GroupedOr(textFields, searchTerm).Execute();
    

    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.

  • Shaishav Karnani from digitallymedia.com 354 posts 1638 karma points
    Oct 09, 2019 @ 14:41
    Shaishav Karnani from digitallymedia.com
    1

    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

Please Sign in or register to post replies

Write your reply to:

Draft