6 messages in com.googlegroups.google-mashup-editor[gme] Re: HELP! Searching Thru My Feed
FromSent OnAttachments
rastaman6918 Apr 2008 10:23 
Jason21 Apr 2008 11:22 
mar21 Apr 2008 14:13 
Karl-Michael Schneider21 Apr 2008 14:40 
Edu21 Apr 2008 23:54 
Jason25 Apr 2008 10:54 
Subject:[gme] Re: HELP! Searching Thru My Feed
From:Edu (karl@gmail.com)
Date:04/21/2008 11:54:00 PM
List:com.googlegroups.google-mashup-editor

This will probably only work for feeds from Google, however, as Jason already mentioned, other feeds might not have that fulltext search capability.

On Apr 21, 11:40 pm, "Karl-Michael Schneider" <karl@gmail.com> wrote:

Hi,

you can use the gm:search tag to display a text input with a search button and search your feed for matching items. The trick is to set the search parameter to "q", the fulltext query parameter in feed urls:

<gm:search id="results" data="${myfeed}" ref="atom:title" param="q" hint="type query here"> <gm:param name="q" value=""/> </gm:search>

<gm:list id="resultlist" data="${results}"/>

This does a fulltext query on the atom:title element in ${myfeed} and creates a new feed ${results} with all matching items.

On Mon, Apr 21, 2008 at 11:13 PM, mar <ron.@gmail.com> wrote:

Hi Jason,

Where could I find a sample to start with for option 1? I have included an atom:title element in my feed. All I need is a set of codes to type in a string, pull all entries that matches the string and show them on my list. Do you know of any source code I can play with? Thanks for replying! Now I dont feel as hopeless.

On Tue, Apr 22, 2008 at 2:23 AM, Jason <gmej@google.com> wrote:

You do have several options here. Although the gm:search module only works for Google Data feeds such as those from Google Base and Google Calendar, you should be able to use filters, custom feeds, or Yahoo! Pipes to search across your feed.

1. Your first option is GME's filter support. This is only applicable if the data you want to filter resides in an ${app} or ${user} feed AND the referenced feed element is one of the "preferred elements." If not, this option won't work for you.

2. A less efficient but still valid option is iterating through the feed using GME's JavaScript API and copying all relevant entries to a temporary feed (${tmp}). You can set your map's data source to this temporary feed instead of the original.

3. Yahoo! Pipes has a module for filtering feed entries on any element. You can send your original feed through Pipes and use the RSS feed provided by Pipes in your mashup, which should contain the filtered feeds only. Pipes may strip out your geo tags, so you will probably have to use its Location Extractor module as well. Even though GME caches feeds for a set amount of time, this option should work if you append the search term to the Pipes URL.

If you are interested in learning about any more of these options in particular, please let me know.

Happy mashing! - Jason

On Apr 18, 10:24 am, rastaman69 <ron.@gmail.com> wrote:

I'm doing a map mashup and I have my own XML feed. By default, the paged list displays all my entries and reflects it to the map. What I need is to have a search option to type in the title and all entries similar to the query be pulled up and displayed on the list. I have been experimenting with the samples but I still pull up all the entries. Can anyone point me to the right direction? I really need to have it done. Thanks in advance!