Login   Register  
PHP Classes
elePHPant
Icontem

Search by Relevance: Sort arrays or MySQL searches by relevance

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of Carlson A. Soares
Name: Carlson A. Soares <e-mail contact>
Packages: 4 Browse all classes by Carlson A. Soares Browse all classes by
Country: Brazil Brazil - PHP jobs in Brazil
Age: 25
All time rank: 62148 in Brazil Brazil
Week rank: 422 Up30 in Brazil Brazil Up
Innovation award
Innovation award
Nominee: 2x


  Detailed description   Download Download .zip .tar.gz  
This class can be used to sort arrays or MySQL searches by relevance.

It can search for a string in an array of a MySQL query result.

The class returns an array of search result entries that is sorted by a criteria of relevance implemented within the class.

A number representing the relevance is returned within the sorted search results.

  Classes of Carlson A. Soares  >  Search by Relevance  >  Download Download .zip .tar.gz  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Search by Relevance
Base name: search-by-relevance
Description: Sort arrays or MySQL searches by relevance
Version: 1.0
PHP version: 3.0
License: Free for non-commercial use
All time users: 923 users
All time rank: 3524
Week users: 1 user
Week rank: 1909 Up
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image Databases Database management, accessing and searching View top rated classes
Group folder image Searching Search engines, crawling and indexing View top rated classes
Group folder image Data types Modeling and manipulating data types View top rated classes


  Innovation Award  
PHP Programming Innovation award nominee
December 2010
Number 3

Prize: One downloadable e-book of choice by O'Reilly
Sometimes it is necessary to determine which entries in search results are more relevant to the original search terms.

This class provides an effective solution to sort an array of results according to which results contain text more similar to the original search terms.

Manuel Lemos

  User ratings  
There are not enough user ratings to display for this class.

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Accessible without login Plain text file est_cid.sql Data Sql file with the database used in the teste.php
Plain text file search.php Class Class to search in array
Plain text file search_mysql.php Class class to search in mysql resultset
Accessible without login Plain text file teste.php Example Script of exemple showing the class function

Download Download all files: search-by-relevance.tar.gz search-by-relevance.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.