I would like to implement multiple search fields on my website.
At the moment i have a search field in the header of the website that searched the whole website which is fine. I would like to include another search to sit in a "portal" within the website in a different location.
Do you know how i can get the "portal search" only to search a specific node "portal" and all sub nodes.
In the index you have path field. Its not searchable however if you use GatheringNode data event you can inject in a searchable path then do a query on it so that only get nodes that have specific id in the path in your case that id will be id of your specific section. See my vid and slides on GatheringNodeData usage http://umbracoukfestival.co.uk/videos-photos/
Multiple search fields with specific searches
Hello,
I would like to implement multiple search fields on my website.
At the moment i have a search field in the header of the website that searched the whole website which is fine.
I would like to include another search to sit in a "portal" within the website in a different location.
Do you know how i can get the "portal search" only to search a specific node "portal" and all sub nodes.
Thanks,
Gary,
How are you doing the search? xslt search / examine??
Regards
Ismail
Hey Ismail,
with Examine.
Thanks
Gary,
In the index you have path field. Its not searchable however if you use GatheringNode data event you can inject in a searchable path then do a query on it so that only get nodes that have specific id in the path in your case that id will be id of your specific section. See my vid and slides on GatheringNodeData usage http://umbracoukfestival.co.uk/videos-photos/
Regards
Ismail
Thanks Ismail,
I will check this out and let you know how i got on
Gary
Im sorry but i'm a bit of a beginner. I've looked at your presentation and seen this.
Path is in index as 1,1056,1078 not
tokenised
• Add new field with , replaced with
space
Can you expand on this?
Gary,
Take a look at code in this post http://thecogworks.co.uk/blog/posts/2012/november/examiness-hints-and-tips-from-the-trenches-part-2/ you need to implement GatheringNodeData event and add new searchable path field with the , stripped out.
Regards
Ismail
is working on a reply...