Copied to clipboard

Flag this post as spam?

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


  • trfletch 598 posts 604 karma points
    Jul 11, 2013 @ 16:05
    trfletch
    0

    Umbraco backend search not working correctly with spaces

    Hi,I have an Umbraco 4.11.8 site and I have noticed something strange happening with the Umbraco backend search. As I start typing I can see it picking up nodes that match the search but as soon as I type a space then suddenly no results are show. For example if I was to type "test" then it would find "test doc 1", "test doc 2", "test doc 3" but as soon as I add a space i.e. "test " then no results are shown.It is almost as if the space in the index is different to the space that my spacebar is adding if that makes sense! I have even tried deleting the node name and typing it again, I have also tried copying the text from the "Name" property of the node into the search box but that doesn't work either.I have an Examine add-on for querying the index and this finds the articles fine when I add spaces so it seems that it is just the Umbraco backend search box that is playing up!Does anyone know what could be causing this and what I can do to resolve it?RegardsTony

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Jul 14, 2013 @ 21:18
    Jeroen Breuer
    0

    If this is still a bug in the latest version of Umbraco you could create an issue for it here: http://issues.umbraco.org/dashboard#newissue=yes

    Jeroen

  • trfletch 598 posts 604 karma points
    Jul 17, 2013 @ 13:40
    trfletch
    0

    I have resolved this myself by modifying the QuickSearchHandler.ashx.cs file in the source code, I changed the following line:

    var operation = criteria.Field("__nodeName", txt.MultipleCharacterWildcard());

     to

    var operation = criteria.Field("__nodeName", txt);
Please Sign in or register to post replies

Write your reply to:

Draft