Skip to content
forked from doctrine/search

Generic Search extension for indexing and querying ODM/ORM objects with different text-search engine implementations

License

Notifications You must be signed in to change notification settings

teuneboon/search

 
 

Repository files navigation

Doctrine Search

Note: This project is a prototype at the moment.

Supported search engines

Todo convert this into items

  • SearchService
    • aggregates a ObjectManager instance: $searchManager = new SearchManager($objectManager);
    • supports direct API calls (Solr, Lucene, ... Adapter useable)
    • transforms returned ID"s via batch operation into objects
  • EventListener for indexing, new SearchIndexListener($backendAdapter);
  • uses ObjectManager::getClassMetadata() as the base structure
  • adds new Annotationen for more complexe configuration needs

Usage

<?php
namespace Entities;

use Doctrine\Search\Mapping\Annotation as Search;
use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 * @Search\Searchable
 */
class Post
{
    /**
     * @var integer
     * @ORM\Id @ORM\GeneratedValue(strategy="AUTO")
     */
    public $id;

    /**
     * @var string
     * @ORM\Column(type="string")
     * @Search\Field
     */
    public $title;

    /**
     * @var string
     * @ORM\Column(type="text")
     * @Search\Field
     * @Search\SolrField
     */
    public $content;
}

About

Generic Search extension for indexing and querying ODM/ORM objects with different text-search engine implementations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%