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