Hi
I am trying to run a search for "nodeName" field, for some pages the search works fine but for other I don't seem to get any results.
Can this be an issue with doctypes that don't have any templates? how can I debug this?
Thanks.
No you shouldn't. The index should pretty much maintain itself as it updates after any page is published. You should only really need to rebuild it if for some reason it gets out of sync (which sometimes it does). Changing the search params in ezSearch however, shouldn't require you do that.
Would you mind marking my post as the answer for the thread? just that way it means if people search for a similar issue, they know they can find the answer.
I'm not sure what version of Umbraco you are using, but regarding your 404s, you might also want to have a look here:
I think I am experiencing the exact same problem, but unfortunately removing the "-template:0"-part in the MacroPartial didn't do the trick for me :(
Does anyone know what else could cause this?
All my doctypes have templates. The search works fine with some search words, it even shows the "no result" message if you search for i.e. "test". But if I try a certain search word that I definitely know exists on the page, I just get a page where the content-div is missing.
I guess it could be template related, I just can't figure out what I'm doing wrong (I've used ezSearch before and never had any problems).
I hope someone's able to help :)
I am using Umbraco 7.1.6 btw
EDIT: Nevermind, I just had to remove the macro from the Master template, so it wasn't related at all :)
Search results aren't consistent
Hi I am trying to run a search for "nodeName" field, for some pages the search works fine but for other I don't seem to get any results. Can this be an issue with doctypes that don't have any templates? how can I debug this? Thanks.
Hi Moran,
Yea, it could be. ezSearch will strip out results with no template by default. To disable this, look inside ezSearch.cshtml and remove "-template:0".
Hope this helps
Many thanks
Matt
Thanks I am trying that right now, by the way, do I need to rebuild the index every time I change the search params?
Hi Moran,
No you shouldn't. The index should pretty much maintain itself as it updates after any page is published. You should only really need to rebuild it if for some reason it gets out of sync (which sometimes it does). Changing the search params in ezSearch however, shouldn't require you do that.
Many thanks
Matt
It works :) Thanks ! I guess the next step is to find he part the build the links to the pages and change it so people won't get to an 404 page :)
Great stuff!
Would you mind marking my post as the answer for the thread? just that way it means if people search for a similar issue, they know they can find the answer.
I'm not sure what version of Umbraco you are using, but regarding your 404s, you might also want to have a look here:
http://our.umbraco.org/documentation/Reference/Request-Pipeline/outbound-pipeline
It may help.
Many thanks
Matt
Sure thanks for the help
Hi
I think I am experiencing the exact same problem, but unfortunately removing the "-template:0"-part in the MacroPartial didn't do the trick for me :(
Does anyone know what else could cause this?
All my doctypes have templates. The search works fine with some search words, it even shows the "no result" message if you search for i.e. "test". But if I try a certain search word that I definitely know exists on the page, I just get a page where the content-div is missing.
I guess it could be template related, I just can't figure out what I'm doing wrong (I've used ezSearch before and never had any problems).
I hope someone's able to help :)
I am using Umbraco 7.1.6 btw
EDIT: Nevermind, I just had to remove the macro from the Master template, so it wasn't related at all :)
is working on a reply...