Copied to clipboard

Flag this post as spam?

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


  • Mus'ab 158 posts 387 karma points notactivated
    Sep 17, 2019 @ 12:34
    Mus'ab
    0

    how to include unpublished nodes in examine search

    is there any way to include unpublished nodes in results that returned from examine search ?

  • Paul Seal 524 posts 2890 karma points MVP 7x c-trib
    Sep 17, 2019 @ 20:28
    Paul Seal
    100

    Hi You can do this by using the internal index rather than the external one.

  • Mus'ab 158 posts 387 karma points notactivated
    Sep 18, 2019 @ 06:08
    Mus'ab
    0

    Hi paul

    do you you know any way to get unpublished node content by internal examine ?

  • Francis Benyah 35 posts 112 karma points
    May 31, 2021 @ 10:47
    Francis Benyah
    0

    This is probably late but might help someone else.

    You simply need to change the index name as Paul said.

    if (ExamineManager.Instance.TryGetIndex("InternalIndex", out var index))
    {
           var searcher = index.GetSearcher();
           var query = searcher.CreateQuery("content")....
    
  • 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