Copied to clipboard

Flag this post as spam?

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


  • Stephen Balmer 18 posts 38 karma points
    Jul 24, 2012 @ 15:11
    Stephen Balmer
    0

    Search problem - search page being returned in the results.

    Hi,

    I'm in the process of learning Umbraco and have encountered a problem with search.

    I've set up the examine config files, wired in my search box using a post and used the standard Razor Search macro.

    If I type in a search term which isn't on the site, I get zero results, as expected.

    However, I enter a term that is in the site, I get 2 results back.

    1 being the correct link

    and another being a link to the search page itself.

    I know I could put in some code to catch that result and ignore it but that doesn't seem right.

    So, does anyone have any ideas ?

    Thanks,

    Steve.

     

  • Tom Maton 387 posts 660 karma points
    Jul 28, 2012 @ 14:11
    Tom Maton
    0

    Hi Steve,

    In your ExamineInex.config I believe you can under the excludenodetypes add nodes you dont want to be indexed in your examine (Lucene) index.

    Once done this then you would need to re-index.

    Tom

  • Stephen Balmer 18 posts 38 karma points
    Jul 30, 2012 @ 12:04
    Stephen Balmer
    0

    Hi Tom,

    I finally figured it out. It was the re-indexing bit that caused the problems.

    Is there a better way of doing that other than stopping the website on IIS, deleting the index directory and restarting?

    Thanks,

    S.

     

  • Tom Maton 387 posts 660 karma points
    Jul 30, 2012 @ 12:07
    Tom Maton
    0

    Download this project http://our.umbraco.org/projects/backoffice-extensions/examine-index-admin

    It re-indexes everything with the click of a button

    and this http://our.umbraco.org/projects/developer-tools/examine-dashboard will show you the nodes, attributs being indexed.

    Hope that helps

    Tom

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies