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
Can anyone tell me what the proper way to implement a site search is for 7.2 that can parse the content inside grids as well? Do I need to use a 3rd party project like ezSearch or Solis Search?
I have come across a link to this gist, but I don't know if it's the best approach https://gist.github.com/abjerner/bdd89e0788d274ec5a33
I've tried to use the Examine like below, but it only seems to match on a couple of pages and returns a lot of garbage if I look at the value or content property of item:
IEnumerable<IPublishedContent> results = Umbraco.TypedSearch("keyword", false, "ExternalSearcher").Where(c => c.TemplateId != 0 && c.ItemType == PublishedItemType.Content);
@foreach (var item in results)
You could use ezsearch however you will need todo some additional coding to get the grid content into the index.
Yeah, I've just done some initial testing with ezSearch and it's failing to index almost everything :\ I'm really quite surprised that something as essential as a search function isn't part of the core, out of the box. Well, all of the Examine stuff is... but none of the starterpacks actually use it, and something like the "Hybrid Framework for Umbraco v7 Best Practices" uses ezSearch but doesn't use the Grid.
Gatheringnode data event is your friend see http://thecogworks.co.uk/blog/posts/2012/november/examiness-hints-and-tips-from-the-trenches-part-2/ you will need to use that and then get the grid content out and inject into the index.
I'm not really sure how that link will help me, as the post is quite old and pre-dates the Umbraco grid. It seems like it's going to be a heck of a lot of work to get the data I need. I think something like this seems to address Grid indexing specifically: https://gist.github.com/abjerner/bdd89e0788d274ec5a33
the demo site for solis search is not working for some reason. it doesnt accept username and password https://demo.solissearch.com/umbraco/#/login/false solis solisdemo
Also, could you please guide me with the working code as how to implement datefacet in solis search on news pages. the code example on solissearch.com doesnt work. i am using solissearch v5.5.0-1.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted