Releases: floriansemm/SolrBundle
Releases · floriansemm/SolrBundle
Bug fix release
- fix searching in sets with list of values
$posts = $this->get('solr.client')->getRepository('AcmeDemoBundle:Post')->findBy(array(
'tags' => array('tag #2', 'tag #1')
));Feature release
- rename
solr:synchronizecommand tosolr:input:populate - new
solr:schema:showcommand to show existing document mapping - add support for OneToMany/ManyToOne relation based on work of @zquintana
- add symfony profile extension based on work of @zquintana
- improve documentation
- solve some bugs
Bug fix release
- solve issue #116
addSearchTermthrows exception if requested field is unknown- set symfony dependencies to LTS version 2.3
bug fix release
Feature and Bug fixes
Features
- document improvements and restructuring by @royopa and @chellem
- console command
solr:synchronizehas now a progress-bar - console command
solr:synchronizeshows which index was used, feature-request by @phphatesme
Bugfixes
- if two different documents with same Id were indexed, then the first inserted document was overwritten by the seconds
- console command
solr:synchronizeshows now a correct summary
Bug fix release
- fixes #91, thanks to @mathewrapid
- restructuring of SolrTest and MulticoreSolrTest
Bugfix release
fixes issue #89
1.2
- new annotation option
indexfor@Document
/**
* @Solr\Document(index="core0")
*/
class SomeEntity
{
// ...
}
- remove
clientsoptions from configuration: - costum queries in repositories by @frne
class ArticleRepository extends Repository
{
/**
* @param string $search
* @param int $limit
* @param int $offset
* @return Article[]
*/
public function findFulltextSearch($search, $limit = 10, $offset = 0)
{
$this->hydrationMode = HydrationModes::HYDRATE_DOCTRINE;
$query = $this->solr->createQuery($this->entity);
$query->setUseAndOperator(false);
$query->setRows($limit);
$query->setStart($offset);
$query->setUseWildcard(true);
$query->addSearchTerm('id', $search);
$query->addSearchTerm('author', $search);
$query->addSearchTerm('title', $search);
$query->addSearchTerm('content', $search);
return $this->solr->query($query);
}
}
Feature Release
- #30 - new entity hydration feature
Bugfix release
- propagation of events will be stopped when an error/error-event occurs
- the implementation of
setIdin entity-classes is not required anymore - if an unknow entity/document alias is passed to
getRepository('AcmeUnknownBundle:Entity'), all known aliases will be proposed in the exception-message.