PHP Classes

Ssearch: Search and rank text results in an array

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 568 All time: 5,394 This week: 673Up
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
Age: 32
All time rank: 200348 in Canada Canada
Week rank: 195 Up5 in Canada Canada Up

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 (4)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:568
This week:0
All time:5,394
This week:673Up