Copied to clipboard

Flag this post as spam?

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


  • Gary 40 posts 129 karma points
    Jul 17, 2013 @ 12:27
    Gary
    0

    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,

  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Jul 17, 2013 @ 13:08
    Ismail Mayat
    0

    Gary,

    How are you doing the search? xslt search / examine??

    Regards

    Ismail

  • Gary 40 posts 129 karma points
    Jul 17, 2013 @ 13:28
    Gary
    0

    Hey Ismail,

    with Examine.

    Thanks

  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Jul 17, 2013 @ 13:32
    Ismail Mayat
    0

    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

  • Gary 40 posts 129 karma points
    Jul 17, 2013 @ 14:53
    Gary
    0

    Thanks Ismail,

    I will check this out and let you know how i got on

    Gary

  • Gary 40 posts 129 karma points
    Jul 17, 2013 @ 15:47
    Gary
    0

    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?

  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Jul 17, 2013 @ 16:11
    Ismail Mayat
    100

    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

Please Sign in or register to post replies

Write your reply to:

Draft