Forum topic: swf embed info comes up in search results

I was getting the embed info in the search results so I ended up modding the search function to not print the node description. The problem is that any words in the embed info are still affecting my search results.. the big problem is my site is a youtube like site for math related videos and I need to be able to search for the word 'volume', but this brings up EVERY video in my database as '&volume=80' is in the embed tag...

is there some way to fix this?

Has anyone had this issue? It would help me a lot to know whether this is a problem with op video, drupal core or perhaps a conflicting module. I've looked all over and can't find a similar issue so im thinking this might be specific to my site.. Any insights are really appreciated as the site is live and this is a somewhat huge issue.. There are so many words in the embed tag that are used in math. *_*

Here's a link to the site if anyone want's to take a look, try searching for volume to see the issue in action:
http://schoolwaxtv.com

Ok I still haven't been able to get this working.. I've looked into some suggested modules and it seems like they only filter search results by node type where I need to filter by field. (i need the body section filtered out). Upon further speculation it has occurred to me that I've modded the search function within the template.php file. Mine returns the entire node content rather than just a title and snippet. Here's the function i'm using, could it be that by returning hte entire node that it's also searching the entire node?

function schoolwaxTV_search_item($item, $type) {
//$output = '

'. check_plain($item['title']) .'

';
$item['snippet'] = theme('node', $item['node']);
$output = '

'. ($item['snippet'] ? ''. $item['snippet'] .'' : '');
return $output;
}

sorry im not up on my php, I just modified an existing piece of code I found.

Thanks for any of your insights!

UPDATE: ok so I commented out the custom search function and im still getting the embed code in the search results.. guess my quest continues!

Up until now i assumed this was happening because of something i messed up..... Now I know better!! I can't believe nobody else has noticed this!! ha! Search this site for 'flashvars' and you'll quickly see that it brings up EVERY video on this site!

http://openpackage.biz/search/node/flashvars

simply because flashvars is a term used in the embedding code of the video.. Now it's clear this is a problem with open project video (i've tested this on all the showcase sites too and they all have the same problem)... please jbrown can you look in to this?

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <h1> <h2> <h3> <h4> <b>
  • Lines and paragraphs break automatically.
  • Internal paths in double quotes, written as "internal:node/99", for example, are replaced with the appropriate absolute URL or relative path.
  • Web page addresses and e-mail addresses turn into links automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options