Copied to clipboard

Flag this post as spam?

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


  • Russell 3 posts 72 karma points c-trib
    Jun 20, 2021 @ 23:35
    Russell
    0

    Search to match the results in Examine Management

    Under Settings - Examine Management I can do a Search of the External Index

    That search gives me the results I want - every time.

    While I have looked at all sorts of "how to" on creating an umbraco8 search page, I cannot seem to write code that gives me the same results as the afore-mentioned page.

    So what would the code be in a search page that gets those exact results? I.e. the set of pages and scores for a given search term.

    That page doesn't seem to rely on passing property names etc as per the other "how to" I have seen.

  • Russell 3 posts 72 karma points c-trib
    Jun 21, 2021 @ 02:39
    Russell
    0

    Hmmm. Looking at the source code of ExamineManagementController.cs

    index.GetSearcher().Search(searchTerm)

    This seems a lot simpler than any other technique I have seen.

    The method described at: https://our.umbraco.com/documentation/reference/searching/examine/quick-start/

    Doesn't work as expected when more than one word is used and seems overly complicated for a simple search.

Please Sign in or register to post replies

Write your reply to:

Draft