Skip to content

Ocramius/LuceneSearch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZF2 Lucene Search Module Nigel Lundsten Mar 28 2014

Provides basic search and index with Lucene allows for searching+displaying multiple sets of data with one search includes some views and pagination controls for the main search route

  • zendsearch is not currently in packagist
  • this module is not currently in packagist
  • composer wont resolve nested dependencies that are not on packagist if their repo is not defined in the root composer.json

you need to add these lines to the composer.json in the root of your project

"repositories": [ { "type": "vcs", "url": "https://github.com/zendframework/ZendSearch" }, { "type": "vcs", "url": "https://github.com/nclundsten/LuceneSearch" } ], "require": { "zendframework/zendsearch" : "dev-master" "nclundsten/LuceneSearch" : "dev-master" }

Quick Start / Demo:

  • add the lines above into your root composer.json
  • run composer update
  • NOTE: default storage location for indexes is /dev/shm
  • use temp route of /search/build-index to build an index from the example mapper data (this will be replaced later)
  • use /search to search! (there are only 3 results, which happen to be text.. "foo", "bar", "baz")

How to Use:

  • build your own mapper that implements the same interfaces as the example mapper, configure the index/search services in servicemanager

Todo:

  • factories
  • build index route for console
  • lots of other misc

About

a basic zf2 searc module that uses Lucene

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages

  • PHP 100.0%