I have been trying to implement Examine search to my project. It's working quite good. But I noticed that some searches doesn't return anything in the frontend but if I try to search in the backoffice I get a result.
Frontend:
Backoffice:
I have been trying to solve this for a while now. I am guessing this has to do with the "-" but I am unsure. Any ideas?
var searchQuery = Request.QueryString["q"];
var searcher = Examine.ExamineManager.Instance.SearchProviderCollection["Searcher"];
@if (!string.IsNullOrEmpty(searchQuery))
{
foreach (var result in searcher.Search(searchQuery, true).Where(x => Umbraco.Content(x.Id).AncestorOrSelf("Lanugage").Id == langNode.Id).OrderByDescending(x => x.Score)
{
Examine result differ in backoffice and in frontend
Hi guys!
I have been trying to implement Examine search to my project. It's working quite good. But I noticed that some searches doesn't return anything in the frontend but if I try to search in the backoffice I get a result.
Frontend:
Backoffice:
I have been trying to solve this for a while now. I am guessing this has to do with the "-" but I am unsure. Any ideas?
Might be an obvious response, but are you comparing the same index on frontend and in the backoffice?
Other thing to consider would be the indexer type - the different indexers manage whitespace, numerics, special chars etc differently.
Thank you Nathan! I took a closer look at the indexer and when i removed
it worked as a charm!
is working on a reply...