Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
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
The site is being built on 7.2 and its currently 60% on that rating.
Thanks for your response
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.
Brilliant, thanks Dennis
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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
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
The site is being built on 7.2 and its currently 60% on that rating.
Thanks for your response
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
Brilliant, thanks Dennis
is working on a reply...