Copied to clipboard

Flag this post as spam?

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


  • Connie DeCinko 931 posts 1160 karma points
    Aug 29, 2012 @ 19:53
    Connie DeCinko
    0

    Cannot stack multiple Examine filters

    I'm trying to pass a search string to my Umbraco Examine filter using three different methods. However, it seems that only the first one is being applied and the other two are ignored.

    If I search for "disc*" I get results, but "discount" comes up empty. If I swap the order, put the Escape first, then "discount" works but "disc*" no longer works.

    Is this not the best way to do this?

     

                       filter = criteria
                            .GroupedOr(new string[] { "title", "summary", "bodytext" }, splitSearchPhrase[i].SingleCharacterWildcard())
                            .Or()
                            .GroupedOr(new string[] { "opinion_Num", "title", "summary", "bodytext", "opiniondate", "smallOpinionDate" }, splitSearchPhrase[i].Escape())
                            .Or()
                            .GroupedOr(new string[] { "title", "summary", "bodytext" }, splitSearchPhrase[i].Fuzzy(0.7f));
    
Please Sign in or register to post replies

Write your reply to:

Draft