PHP Classes
elePHPant
Icontem

Ssearch: Search and rank text results in an array

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2014-06-13 (2 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 555 All time: 5,218 This week: 1,115Up
Version License PHP version Categories
ssearch 2.7GNU General Publi...5PHP 5, Searching, Text processing
Description Author

This class can be used to search and rank text results in an array.

It can perform a query with keywords to be search in text entries stored in an array data set.

The class can return the search results sorted by relevance ranking.

Picture of Richard Carson
  Performance   Level  
Name: Richard Carson <contact>
Classes: 4 packages by
Country: Canada Canada

Details
libPhonetiq is copyright of Richard Carson, 2014 and is released under V3 of the GPL

Before starting a search, the begin($query) function must be called with a search query as it's argument.

Afterwords, call next($row) for each row in which you wish to search. $row must be an array of strings.

When you call next() on a row, it will return either a score, or false if that score is too low to be included in results.
  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example Example script
Plain text file libphonetiq.class.php Class rename
Accessible without login Plain text file LICENSE Lic. GPL V3
Accessible without login Plain text file README Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
 100%
Total:555
This week:0
All time:5,218
This week:1,115Up