Hi Steve

Out of the box, IndexedSearchEngine doesn't really have what you're
looking for - although it is a good suggestion.  ;-)

Here's is an option for what you can do:

Construct your URI like this:
http://site.com/search/search?terms=Tim%20Smith and add a partial to
your application in /app/views/notes/_search_results.rhtml that looks
something like this:

<html>
<head>
  <title>All About Tim Smith</title>
  <%= stylesheet_link_tag 'scaffold' %>
  <%= engine_stylesheet "indexed_search_engine" %>
  <%= javascript_include_tag :defaults %>
</head>
<body>
<%= render :partial => 'search/search_field' %>
<div id='result_list'>
  <% @results.each do |result| %>
    <%= link_to result.title, result.uri, :class => 'result_link' %><br/>
    <span class="result_extract">
      <%= search_highlight result.context, @terms %><p/>
    </span>
  <% end %>
</div>

</body>
</html>


HTH,
Lance Ball




On 17 Jul 2006 05:47:49 -0000, steve ross
<[EMAIL PROTECTED]> wrote:
> I'm not totally familiar with the Indexed Search Engine, but I'm not
> certain there is a form field involved. It looks like the whole thing is
> pulled off using Ajax by doing an observe_field on :search.
>
> You should be able to use a URL like:
>
> www.mysite.com/search/search?terms=whatever%20you%20want
>
> Give it a try...
>
> On Monday, July 17, 2006, at 2:07 AM, Steve wrote:
> >Good evening --
> >
> >I'm really new to Rails and I was looking for a way to use
> >IndexedSearchEngine with a "get" call instead of the default "post". I
> >have the script by itself on a page /myapp/app/view/search/rhtml and I
> >want to be able to bookmark the query string.
> >
> >I can't seem to find where in the code the call to form_tag is. This is
> >as likely as not a terribly stupid question but like I said I'm -really-
> >new. Any help would be greatly appreciated.
> >
> >--
> >Posted via http://www.ruby-forum.com/.
> >_______________________________________________
> >engine-users mailing list
> >engine-users@lists.rails-engines.org
> >http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org
>
>
>
>
> --
> Posted with http://DevLists.com.  Sign up and save your mailbox.
> _______________________________________________
> engine-users mailing list
> engine-users@lists.rails-engines.org
> http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org
>


-- 
Lance Ball
http://lance.langwell-ball.com
_______________________________________________
engine-users mailing list
engine-users@lists.rails-engines.org
http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org

Reply via email to