# Search Extension

**URL:** <https://www.ruby-forum.com/t/search-extension/110962>\
**Category:** Radiant CMS\
**Created:** [August 1, 2007, 3:05pm UTC](https://www.ruby-forum.com/t/search-extension/110962 "2007-08-01T15:05:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sharon\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/9de0a6/32.png) [@Sharon\_C](https://www.ruby-forum.com/u/Sharon_C)\
**Post date:** [August 1, 2007, 3:05pm UTC](https://www.ruby-forum.com/t/search-extension/110962/1 "2007-08-01T15:05:25Z")

</div>

I would like to add a search box to the home page of our radiant site  
that will search only within the site.

I have exported the search extension (which I hope may do this), into  
the extensions folder within radiant and it shows up in the extension  
list within the admin interface.

However, I am lost as how to actually use it. There do not appear to be  
any new search tags in the list of available tags.

Could someone give me a few pointers on how to add/use the search  
functionality?

Many thanks

Sharon

This e-mail has been scanned for all viruses by MessageLabs.

---

<div class="post-metadata">

**Author:** ![Sharon\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/9de0a6/32.png) [@Sharon\_C](https://www.ruby-forum.com/u/Sharon_C)\
**Post date:** [August 1, 2007, 3:37pm UTC](https://www.ruby-forum.com/t/search-extension/110962/2 "2007-08-01T15:37:31Z")

</div>

Sharon,

You need to make a page of the type “Search” that will do the processing  
for you. When editing that page, you should be able to see information  
about the tags, IIRC. If there is no information there, let me know and  
I will go back and add documentation.

Sean

---

<div class="post-metadata">

**Author:** ![Sharon\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/9de0a6/32.png) [@Sharon\_C](https://www.ruby-forum.com/u/Sharon_C)\
**Post date:** [August 1, 2007, 5:07pm UTC](https://www.ruby-forum.com/t/search-extension/110962/3 "2007-08-01T17:07:44Z")

</div>

If we can add search extension upgrade requests, I’d love to be able  
to specify a search field for a particular folder. So that I can  
have a, “Search this site” AND a “Search our blog” type search (or  
search our press room, etc.). I would also love to know how to add  
live search, as it is a powerful feature, but how to get the plugin  
working with live search is a little beyond my current knowledge.  
-Mark

---

<div class="post-metadata">

**Author:** ![Sharon\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/9de0a6/32.png) [@Sharon\_C](https://www.ruby-forum.com/u/Sharon_C)\
**Post date:** [August 1, 2007, 5:19pm UTC](https://www.ruby-forum.com/t/search-extension/110962/4 "2007-08-01T17:19:45Z")

</div>

Mark,

Live search was originally in the plugin for 0.5.x, but I removed it  
because I didn’t need it and I thought most people wouldn’t either.

As far as searching sections of the site, that proves much more  
challenging than a simple search because you have to do joins or filter  
the results after the fact. (It is do-able, but maybe this is a PDI.)  
Excepting the title, breadcrumb and slug, all of the real content is  
stored in models associated with the page, so you are really searching  
through page-parts. If Radiant were using a nested-set organization for  
the page/sitemap structure instead of a tradtional tree-list, scoping a  
search would be easier.

Sean
