Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 514 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 514 Bytes

##Introduction## A light weight Kohana Solr module that uses JSON response and JSON input for faster document indexing and simplicity.

##Features## Transparently add documents to solr from PHP arrays or objects:

<?php
$doc = array(
    'id' => 1234,
    'title' => 'How to tie a tie',
);

Solr::instance()->index($doc);

Index multiple docs at once:

<?php
Solr::instance()->batch_index($docs);

Simple search:

<?php
$response = Solr::instance()->search($lucene_query);