Welcome Guest, Not a member yet? Register   Sign In
Haystack: An IndexTank client library for Codeigniter
#1

[eluser]Unknown[/eluser]
I'm using IndexTank as a hosted search provider for a project I'm working on. They did not have a CodeIgniter client, and the general PHP client they offered was a little buggy, so I wrote my own.

If you haven't looked into IndexTank, you should. It's really cool.

This is very much a work in progress and I will be contributing to it as time allows.

You can get the code from my Github repository and you can get basic usage examples from my webpage

Features
Easy to use
CodeIgniter 2.0+ compatible

Basic Usage

Code:
// Load the library
$this->load->library('Haystack');

// Select an index to work with
$this->haystack->select_index('Activities');

// Add a document to the selected index
$docid = 1;
$fields = array('text' => "There's so much room for activities!");
$this->haystack->add_document($docid, $fields);

// Delete a document from the selected index
$this->haystack->delete_document(1);




Theme © iAndrew 2016 - Forum software by © MyBB