Copied to clipboard

Flag this post as spam?

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


  • Moran 285 posts 934 karma points
    Aug 01, 2014 @ 15:09
    Moran
    0

    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.

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Aug 01, 2014 @ 15:49
    Matt Brailsford
    0

    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

  • Moran 285 posts 934 karma points
    Aug 01, 2014 @ 16:06
    Moran
    0

    Thanks I am trying that right now, by the way, do I need to rebuild the index every time I change the search params?

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Aug 01, 2014 @ 16:23
    Matt Brailsford
    100

    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

  • Moran 285 posts 934 karma points
    Aug 01, 2014 @ 17:20
    Moran
    0

    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 :)

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Aug 02, 2014 @ 13:12
    Matt Brailsford
    0

    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

  • Moran 285 posts 934 karma points
    Aug 02, 2014 @ 14:05
    Moran
    0

    Sure thanks for the help

  • SGB 27 posts 73 karma points
    Sep 08, 2014 @ 13:43
    SGB
    0

    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 :)

Please Sign in or register to post replies

Write your reply to:

Draft