Skip to content

Commit

Permalink
format readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Baachi committed Dec 5, 2011
1 parent 69847cb commit 5e2a7a6
Showing 1 changed file with 44 additions and 8 deletions.
52 changes: 44 additions & 8 deletions README.markdown
Original file line number Diff line number Diff line change
@@ -1,18 +1,54 @@
# Doctrine Search (Solr, Elastic-Search, Lucene, ...)
# Doctrine Search #

#Todo: convert this into items
__Supported search engines__

* [ElasticSearch}(http://www.elasticsearch.org/)
* [Solr](http://lucene.apache.org/solr/)
* [ZendLucene](http://framework.zend.com/manual/en/zend.search.lucene.html)

## Todo convert this into items ##
* SearchService
* aggregates a ObjectManager instance: $searchManager = new SearchManager($objectManager);
* 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 ##

on the class:
@ORM\Entity
@Search\Searchable
```php
<?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;

omn field/properties:
@Search\Field(boost=2.0,...)
@Search\SolrField (explcit configuration)
/**
* @var string
* @ORM\Column(type="text")
* @Search\Field
* @Search\SolrField
*/
public $content;
}

0 comments on commit 5e2a7a6

Please sign in to comment.