Copied to clipboard

Flag this post as spam?

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


  • James 251 posts 1169 karma points
    Jun 02, 2015 @ 21:26
    James
    0

    Basic Razor Search

    I am trying to implement basic razor search for a site because it doesn't need to be anything coplex.

    Here is what i got so far:

    var searchResults =  Umbraco.Content("1061").DescendantsOrSelf("Dog").Where("Visible && PageName == @0 || DogName == @0 || DogDescription == @0", queryString);

    Is there anything i can use in the above that is similar to "PageName IS LIKE @0" rather than using ==. As == implies exactly like i think?

     

    Thanks and kind regards,

     

    J

  • Dennis Aaen 4457 posts 17970 karma points admin hq c-trib
    Jun 02, 2015 @ 21:41
    Dennis Aaen
    0

    Hi James,

    Instead of create your on serach funtionally to perhaps you should have a look at the ezSearch package https://our.umbraco.org/projects/website-utilities/ezsearch.

    It´s very easy to configure to which fields that you want to search in, and so on.

    Hope this can be a solution for you,

    /Dennis

  • James 251 posts 1169 karma points
    Jun 02, 2015 @ 21:51
    James
    0

    The site is being built on 7.2 and its currently 60% on that rating.

     

    Thanks for your response

     

  • Dennis Aaen 4457 posts 17970 karma points admin hq c-trib
    Jun 02, 2015 @ 21:59
    Dennis Aaen
    100

    Hi James,

    I have just used it for an Umbraco site running version 7.2.1, and I have no problem with configuring the ezSearch package and get it to work with the site.

    So I think you should give it a try.

    /Dennis

  • James 251 posts 1169 karma points
    Jun 02, 2015 @ 22:00
    James
    0

    Brilliant, thanks Dennis

  • 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