stargeek
PHP news website logo.
home    PHP scripts    articles    seo tools    links    search    contact    shop    realtors


Merging search results







Merging search results

Merging search results 04/09/2004 04:13 PM

Template snippet showing how to merge seearch results from several Movable Type blogs into one ordered list and create friendly suggestions when a search returns zero results.




This is a GrokNews Entry: (what is grok?)





Similar Items

Merging search results

Grok Headline matches for Merging search results

Feedster Powers RSS and Blog Search
Results for Eurekster - News Search
Expands the Scope of Search Engine
Powered by Social Networking Technology


Feedster Powers RSS and Blog Search
Results for Eurekster - News Search
Expands the Scope of Search Engine
Powered by Social Networking Technology
09/16/2004 03:28 AM
Feedster, Inc., the first company to utilize RSS feeds and weblog content to enhance broad web search, today announced that it will power RSS and blog search results for Eurekster, the first and only Internet search engine powered by social networking technology. By integrating Feedster’s news search technology and RSS feeds, Eurekster now provides its users and subscribers with an expanded search solution containing new sources of information and data beyond traditional Web search. [PRWEB Sep 16, 2004]

Access 90 Search Engines’ Results With
Firefox’s Search Box


Access 90 Search Engines’ Results With
Firefox’s Search Box
03/17/2005 03:02 AM
TurboScout.com launches a Firefox extension which empowers over 27 million Firefox users to access original results from more than 90 search engines with just a click. [PRWEB Mar 17, 2005]

Better search results than Google?


Better search results than Google? 01/05/2004 12:19 PM
CNN Jan 5 2004 10:58AM ET

Better Search Results Than Google?


Better Search Results Than Google? 01/05/2004 04:11 PM
Mechanik writes "CNN has an AP article about the next generation of up and coming search tools, which try to cope with the glut of hits that result from ...

Save search results in 10.3


Save search results in 10.3 04/08/2005 11:58 AM
I don't know if everyone knows this, but it wasn't documented as a shortcut in the Finder menu bar ... pressing Command-T while doing a search from the Finder's toolbar, or after finishing a search, the Finder will create a f...

Using PHP Includes for MT Search Results


Using PHP Includes for MT Search Results 07/04/2004 03:28 PM

A lot of people want to roll their own search with Movable Type. Us, for instance — Gadgetopia has a two-tiered search system based on whether the search term appears in the title, keywords, or body of the entry (see this post for more information).

Our search is done in with SQL and PHP, abandoning the MT search system completely. The probem with this method is rendering the search results. If you don't use MT, then you lose two things:

(1) Auto-creation of the permalink. The URL isn't stored anywhere in the database, so you have to recreate it. If your URLs are just based on the entry ID, then it's not hard. However, look at our URLs — they're a conglomoration of the date and the entry title. We'd have to create a PHP function to recreate this scheme — and if we ever changed the URL structure from within MT, we'd have to change the PHP function separately.

(2) Text filters. If you're just converting line breaks, the text filter is not so hard to re-produce. However, if you're using Textile or some other plug-in to filter your text, you're going to have to reproduce that in PHP as well so the previews render correctly.

You can avoid all this, however, by simply using PHP includes and an extra Individual Entry Archive. The result is an elegant solution that blends PHP and MT to eliminate the tedium of recreating MT functionality in PHP.

To do this, create a new Individual Entry Archive in MT called "search_fragment." This template should contain the just HTML to present a single search result. Like this:


<tr class="title">
  <td class="title">
    <a href="<MTEntryPermalink>"><MTEntryTitle></a>
  </td>
  <td class="date">
    <MTEntryDate format="%m/%d/%Y">
  </td>
</tr>
<tr class="excerpt">
  <td colspan="2">
    <MTEntryExcerpt>
  </td>
</td>

Configure this template to generate a file in a "search_fragments" directory named for the entry ID only. You don't even have to add an extention, though you can if you like (if so, you'll need the change the PHP code listed below). So the entry in the archiving configuration would be something like:

search_fragments/<MTEntryID>

Now when an entry rebuilds, it will create two files: (1) its normal archive file, and (2) a search result fragment file called "1", "2", "348", etc. in the search_fragments directory. Notice that since we're using standard MT templates to create the fragment, the permalink will be created by MT, and the excerpt text will be formatted according to the text filter the entry is using.

Now, when you use your SQL to get your search results, just SELECT the entry ID, then spin through those and use PHP to include the matching search fragment file. Like this:


<table>
  <?php
    while ($r = mysql_fetch_assoc($keywordResults)) {
      @include "search_fragments/" . $r['entry_id'];
    }
  ?>
</table>

This will dump the contents of each search fragment file in the table. Since each file contained two rows, the resulting table will be valid HTML. Notice we're surpressing any errors on the inclusion line just in case a file is missing for some reason.

We've be using this system here for months, and it works great.

Click here to comment on this entry


Why you should be ignoring your search
results


Why you should be ignoring your search
results
06/22/2005 02:06 AM
Today I’m attending a search engine research workshop run by Brad Fallon in Atlanta, Georgia, and am fascinated by the people here who obsessively track their SERPs (search engine results placement, jargon for what match number you are on Google for a given search term). My part of this workshop is to talk about how blogging can help your search engine placement, but what I’m actually talking about is whether SERP is a meaningful measure… Direct and Related Links for 'Why you should be ignoring your search results'

The Inevitability of Search Results as
RSS


The Inevitability of Search Results as
RSS
09/10/2004 02:12 AM
Tim Bray, in reporting on a visit to an Intelligence Technology gathering said: They’ve also done something way cool with their Google appliance; one of the bright geeks there has set up a thing where you can subscribe to a search and get an RSS feed. Well, duh. Anyone could fix up one of those using the Google API, I wonder why Google isn’t supporting this already? I can't help but to laugh because at this point we all know...

In Search of Good Results


In Search of Good Results 07/05/2004 07:46 AM
In Search of Good Results
http://www.emarketer.com/Article.aspx?1002877

A recent survey by FIND/SVP found that 84% of business executives queried thought Web searches using commercial search engines took longer than they should because they tended to deliver too many irrelevant results, resulting in an estimated loss of $31 billion in lost productivity. In addition, 74% expressed doubts that the results were reliable and 39% felt that information found online is outdated. Despite their reservations, 67% indicated it would be difficult or impossible to do their jobs without Web-based search tools, with 28% reporting they spend between 6 and 10 hours a week researching online. The most sought after information was financial information and reports, followed by information on competitors. "The commercial search market is dominated by search engines that must target the broadest consumer audience possible, with the broadest scope of content, in order to sell advertisements for any and every product and service possible," says a META Group VP. "The commercial search market has barely begun to address the untapped demand for highly specialized and screened content and we believe this market is poised for growth in the next three to five years."

"Put these search results on your site]"


"Put these search results on your site]" 09/22/2004 08:23 AM

Google: An explanation of our search
results


Google: An explanation of our search
results
04/15/2004 03:47 AM
An explanation of our search results .. Google has officially responded .. Please read our note here .. ad

google.com/explanation.html
track this site | 6 links


LookSmart Search Results to Feature On
100.com


LookSmart Search Results to Feature On
100.com
07/15/2004 03:12 AM
Search engine newcomer 100.com has elected to align itself with LookSmart to access it's directory listings and bid-for-placement distribution network. [PRWEB Jul 15, 2004]

Visualizing Google Search Results


Visualizing Google Search Results 08/30/2004 01:46 PM
Source: SearchDay - MoreGoogle is a simple utility that enhances Google result pages with thumbnail images and other useful links....

Yahoo! Tests New Look for Search Results


Yahoo! Tests New Look for Search Results 07/07/2004 04:09 PM
Source: Search Engine Guide - Following on the heels of an updated look from rival Microsoft, popular search engine Yahoo! is also testing some updates to their search results....

Deceptive Advertising in Search Results


Deceptive Advertising in Search Results 03/23/2005 08:11 PM

Visualizing Yahoo Search Results


Visualizing Yahoo Search Results 06/24/2005 03:05 PM

Remixing Google's Search Results


Remixing Google's Search Results 06/02/2004 11:07 PM
It appears that there are a lot of folks out there who are trying to "remix" Google's interface. The one that got the most press, of course, was A9, who built an entirely new interface to searching Google. Then, there's Prog (formerly Proogle), which adds in PageRank info to Google search results. Now comes the news of an application called MoreGoogle, which tries to add additional features to the Google interface to make it more useful. I haven't tried it (and some folks may be a bit wary to download a random app and let it hijack their Google searches), but the article suggests that the author of the program just wanted to make the Google interface more useful. Once the program is installed, it basically watches over any Google searches, and alters the results to make them more useful: adding in thumbnail images of the website and adding an "open in new window button." The application adds in some new text ads, that appear to be part of AdSense (this isn't clearly explained) in order to get some money back for altering the Google interface. Obviously it would be pretty simple for Google to add these features themselves, and it's unclear how legit this particular app really is, but it's still very cool to see people trying to "remix" Google results to make them more valuable. Of course, there's a pretty good chance that Google's lawyers might not find it as cool.

A9 Offers Search Results From Five
Sources


A9 Offers Search Results From Five
Sources
09/16/2004 01:04 AM
A9, the search engine from Amazon.com, has relaunched its search engine. It now offers search results from several different sources, including the IMDB and of course, Amazon.com. It's available at...

Personalizing Search Results After The
Fact


Personalizing Search Results After The
Fact
09/15/2004 04:23 AM
I haven't been a huge fan of the concept most people talk about when they discuss "personalized search" which usually seems more like giving up a bunch of private info so that search engines can better target ads for you. However, rather than focus on personalizing the searches before they're done, a few recent announcements suggest there's some potential in personalizing the search results after they've been done. Much of the tech world is focusing on the latest launch of a9, the Amazon.com owned startup that is working on ways to make the search interface better (it's worth noting they don't seem to be doing anything to make search itself better -- but just the interface). One of the new features is that it lets users better handle search results, keeping track of what sites they've clicked on, taking notes, and even "organize" past searches. This sounds quite similar to another (much quieter) announcement, earlier in the day, from a small-time meta search engine named iZito whose meta-search engine lets users organize the results -- "parking" certain results while deleting or minimizing others. This seems like a different way to approach search. Rather than focus on trying to better anticipate what a searcher really wants, both of these moves show that sometimes it's best to let the human doing the searches take control. Give them more of the raw data and shape it into useful results. In a subtle way, it's almost admitting that automated search really can't figure out what a person really wants very easily -- something most people know, but many in the search world don't like to admit.

Top 200 MSN popular search results IN
ORDER.


Top 200 MSN popular search results IN
ORDER.
12/19/2004 03:08 PM
It may be in flash, but that never stopped a SEO'er.

New Feature: Adding Metadata to Search
Results


New Feature: Adding Metadata to Search
Results
03/11/2003 09:43 AM

New Feature: Adding Metadata to Search Results

Ok.  Here's a cool (well I think its cool at least -- let me know if its useless) new thing.  What I've done is added metadata to search results so you can look at a search result and see visually whether that post has:

  • Multiple Links
  • Any images
  • Any mailto links

Why?  What Was I Thinking?

We all surf the net a lot and while we might not be able to remember an exact posting, we tend to be able to remember some of its characteristics -- WHEN they deviate from the norm AND if they're visual in nature.  When I think about cool cell phones for example, I'd naturally think of Russell.  But Russell has written so much on cell phones that if the search result can tell me "Has 5 pictures" then I can get a rough feel if this might be the posting.  Similarly if I'm looking for a post where I remember that it had a mailto link then I can now tell from the search results.  Now both mailtos and pictures are still somewhat uncommon in blog posts so I start the count on those from 1 (i.e. I'll display their count if there is at least 1).  But we assume that blog posts have at least 1 url always so I only show urls when there are more than 1 (which might not be the right thresh hold / is 5 better).

Sound silly?  Here are some examples:

Should It Stay or Should It Go Now?

Let me know if this is worthwhile or simply featuritis and should be eliminated (and yes that means that The Clash is playing now on my iPod).


Googles Interesting Search Results Gets
a Tad More Press


Googles Interesting Search Results Gets
a Tad More Press
12/13/2003 12:40 PM
Although the now famous "Miserable Failure" and "Water Bed" searches on Google are quite common, they are tending to get a bit more press these days.

Google Explains Jew Watch Search Results


Google Explains Jew Watch Search Results 05/12/2004 11:09 PM
Search Engine Journal May 13 2004 3:18AM GMT

Wanadoo rapped for 'misleading' search
results


Wanadoo rapped for 'misleading' search
results
06/18/2004 04:55 AM
Sponsored links must be clearly flagged

Google Says It Doesn't Plan To Change
Search Results


Google Says It Doesn't Plan To Change
Search Results
04/12/2004 11:30 PM
Google has no plans to alter its search results despite complaints that the first listing on a search for the word "Jew" directs people to an anti-Semitic Web site.

AdSubtract to snip paid search results


AdSubtract to snip paid search results 12/08/2003 07:10 PM
While some search engines, such as Google, do a good job of segregating paid advertisements visually and spatially from legitimate search results, other search ...

Yahoo Introduces YQ Contextual Search
Results


Yahoo Introduces YQ Contextual Search
Results
02/05/2005 09:42 PM
"...contextual search technology that analyzes the contents of the Web page you're viewing and then gives you a list of search results directly related to what you're reading."

Next-generation search tools to refine
results


Next-generation search tools to refine
results
08/09/2004 07:19 AM
The vast corpus of human knowledge could soon be published on the Internet. The problem now is how to wade through it.

Affiliate Links in Search Engine Results


Affiliate Links in Search Engine Results 12/17/2004 06:32 PM
Former Yahoo hacker turned Feedster hacker Ray suggests that search engines are missing out by not dropping in an affiliate code in their links back to sites like Amazon.com. Near the end of that post he says: And when I do click the product link on Google's result page, they're missing out on any potential revshare. I don't think inserting an affiliate ID would be seen as doing evil or tarnish their credibility. It wouldn't even give me pause in...

Search Engine Wars - W3C Validation
Results


Search Engine Wars - W3C Validation
Results
07/01/2002 08:30 AM
Validation results from the major search engines.

Roogle Now Groups Search Results by
Title


Roogle Now Groups Search Results by
Title
03/11/2003 09:43 AM

Roogle Now Groups Search Results by Title

Ok.  Thanks to Jason's suggestion, I just implement blog grouping by title i.e. blog titles are now reported on the result list above the blog posting itself.  And if you want to jump directly to a blog's home page, that's now done too.  [_Example_]

Database was rebuilt and re-indexed.  Another 1447 postings as of an hour or so ago.  If you're wondering why I'm doing this all manually for now rather than as a scheduled job, its the normal cautiousness with a new system.

The award for "Most Cogent, Well Thought Out Email I Ever Received on a Saturday Night" goes to Mike of EraBlog.  I'm not a .NET guy but if I was, I'd be checking out Mike's stuff like asap (EraBlog is a .NET way to blog).  Mike -- I'm thinking strongly about your points.  Thank you.


Yahoo set to drop Google search results


Yahoo set to drop Google search results 01/06/2004 10:29 AM
Search Engine Lowdown Jan 6 2004 9:11AM ET

Amazon Calls for Open Search Results


Amazon Calls for Open Search Results 03/17/2005 04:22 AM
At the O'Reilly Emerging Technology Conference in San Diego Tuesday, Amazon.com CEO Jeff Bezos introduced a new initiative to standardize search results. The goal, says Bezos, is to bring together thousands of specialized search engines using an open format that can be easily syndicated.

Blinkx Update Merges Search Results


Blinkx Update Merges Search Results 04/04/2005 11:57 PM
The startup revamps its desktop-search client by displaying search results in one place, whether they are from a user's hard drive, the Web or television programs.

AdSubtract Blocks Paid Search Results


AdSubtract Blocks Paid Search Results 12/08/2003 07:09 PM
While some search engines, such as Google, do a good job of segregating paid advertisements visually and spatially from legitimate search results, other search ...

New Tool To Pull Out Paid Search Results


New Tool To Pull Out Paid Search Results 11/17/2003 02:06 AM
Now that pop-up and banner ad blocking software is becoming more common, the makers of such products are turning their efforts to other sneaky advertising tricks. InterMute, makers of AdSubtract, are launching a product that will try to remove paid inclusion search results that have been coming under increas ing scrutiny lately. It's a little unclear from the article exactly how the search removal program will work. It might just be designed to work with sites (like Google) where the paid text ads are obvious - but it suggests that it will try to pick them out of other search engines where the paid inclusions are mixed right in with the unpaid. Of course, I wonder how big a market there is for such technology? While the more tech savvy folks may know about paid inclusions, most people don't. Furthermore, they're not intrusive - which is what is most annoying about pop-ups and spam. People are willing to pay to get rid of intrusive advertising, but I'm not sure they're willing to pay to get rid of subtle advertising.

A Search Engine for Racing Information
and Results


A Search Engine for Racing Information
and Results
06/22/2004 06:08 AM
A plain query box gives you the ability to search information on 12,000 races, 12,000 records, 30,000 drivers, and fifty championships. The site is called CEEM@il and it's available at...

84% of Business Executive's Dissatisfied
with Search Results


84% of Business Executive's Dissatisfied
with Search Results
06/23/2004 02:12 PM
Emarketer reports: "...using the generally consumer-centric search engines now available - take longer than they should due to poor results. It is estimated that the loss of productive time using search engines to conduct online research cost businesses $31 billion last year."

Google Fights Lawsuit Over Search
Results


Google Fights Lawsuit Over Search
Results
01/14/2003 12:26 PM
In a case that underscores the increasing importance search rankings have on business, Google Technologies is fighting to dismiss a lawsuit claiming that it ...
Grok Description matches for Merging search results
GrokA matches for Merging search results

Merging search results

The following phrases have been identified by the grok system as matching this entry:

















Also check out:


Grok

Ipod Porn on the
Rise

Brief Abstract of
Wikipedia's
Mesothelioma Cancer
page

Get first aid
instructions in your
cell phone

IE is crap
JSPWiki gains
podcasting support

11 ways to valid RSS
Sweet. Opera 7.50
for OS X

That's "Vacation"
with a Capital "V"

Is spim worse than
spam?

FAA greenlights
private spaceship

Union ballots SBC
workers on strike
action

Boffins seek human
chimps

EU revises patent
licensing rules

Labels seek end to
99c music per song
download

Skype: giving
wireless PDAs a new
voice

Nokia: sales slump
caused by inadequate
product range

Grey stage set for
UK PS2 price war

Sun shelves
UltraSPARC V in
favor of the great
unknown

No Windows XP SE as
Longhorn jettisons
features

Chip start-up boosts
Wi-Fi rate by '10-20
times'

Vodafone promises
multi-network moves

"Flash mob"
supercomputing
attempt falls short

Hard disk storage
from EMC imitates
tape backup

Not everyone is
googly-eyed over the
potential of Google
eying your inbox

Apple's FairPlay DRM
cracked

Et Cetera: the "why
did I lose an hour"
edition

Should the U.S. dump
existing telecom
laws?

Blaster worm not
responsible for NE
blackout

DSL's stealthy price
increase plays
tricks on
subscribers

BT gets into DRM
Microsoft opens up
code under Common
Public License

AMD and Intel 64-bit
x86 chips close, but
not fully compatible

NEC develops a
radical quick charge
battery

When keeping it Real
goes wrong

A second Moore's
Law? Try my
meta-law, instead

SCO dealt another
setback while IBM
goes for the jugular

Flash memory market
heating up

Intel gives
low-power laptop
CPUs more love

Metroid, the Movie
coming in 2006

Hard drive may
remain in Xbox 2
after all

Big Brother's Stop
Lights turn red on
speeders

Hollywood's
objections to
digital content may
have far-reaching
consequences

Et Cetera: the IRS
approacheth! No
supper for you!

Microsoft pushing
security (still),
making car analogies

AOL opens some
premium content

First Mac OS X
trojan horse spotted

John Kerry faces
hand-shaking ban
(Reuters)

The "rape fantasy"
that went wrong
(Reuters)

Cambodian cuts off
penis to feed
spirits (Reuters)

Local league moves
to spares blushes
(Reuters)

Punctuation
vigilante heads
stateside (Reuters)

Gambler's sharp
vision is no crime
(Reuters)

German 1954 World
Cup winner speaks
out (Reuters)

Fat German hamster
triggers police
rescue (Reuters)

CORRECTED-The
scammer who got
scammed (Reuters)

what is grok?