Skip to content
This repository has been archived by the owner on Apr 22, 2022. It is now read-only.

Fixes entity not being removed from ES #117

Open
wants to merge 48 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
a386d19
Fixed consistency
fprochazka Sep 11, 2014
8c84e7f
Implemented DependentMappingDriver
fprochazka Sep 11, 2014
aaac049
Implemented DependentMappingDriver
fprochazka Sep 11, 2014
2047e6a
Merge branch 'patch-3' into devel
fprochazka Sep 11, 2014
330362c
phpdoc
fprochazka Sep 16, 2014
5ec307d
Virtual properties
fprochazka Sep 16, 2014
489b9de
AnnotationDriver refactoring
fprochazka Oct 2, 2014
d560020
AnnotationDriver refactoring
fprochazka Oct 2, 2014
57b8e8d
Fixed caching of ClassMetadata::methodMappings
fprochazka Oct 2, 2014
4ad5584
ElasticCompletionField
mkoubik Nov 22, 2014
b63be19
drop dead code
fprochazka Dec 26, 2014
b4d452b
Drop broken AnnotationDriver
fprochazka Dec 29, 2014
cd2a48a
refactor exceptions
fprochazka Dec 29, 2014
d1d560d
Fixed JMSSerializer
fprochazka Dec 29, 2014
b614546
dead code AnnotationSerializer
fprochazka Dec 29, 2014
2f5c882
introduced ChainSerializer
fprochazka Dec 29, 2014
df012e2
Added default optional SearchableListener & Searchable interface
fprochazka Dec 29, 2014
301c7ef
Fixed search events
fprochazka Dec 29, 2014
33984fb
Refactored mapping; Introduced NeonDriver; Introduced decorator Depen…
fprochazka Dec 29, 2014
8e4addf
Introduce SchemaManager
fprochazka Dec 29, 2014
699cab2
Refactored SearchManager & UnitOfWork
fprochazka Dec 29, 2014
75e997c
Refactored Query
fprochazka Dec 29, 2014
c6a7b3d
Refactored EntityRepository
fprochazka Dec 29, 2014
0f51c3f
composer: require-dev includes jms/serializer, elastica and neon
fprochazka Dec 29, 2014
74f7bf6
fixed exceptions autoloading
fprochazka Dec 29, 2014
30cc63d
fixed type error
fprochazka Dec 29, 2014
4560101
Fixed cannot use IndexMetadata as array
fprochazka Dec 29, 2014
5d15146
Fixed loading metadata in NeonDriver
fprochazka Dec 29, 2014
8ae9174
Fixed sections inheritance; todo remove nette\di
fprochazka Dec 29, 2014
892155e
Rename SearchableListener to Tools\OrmSearchableListener
fprochazka Dec 29, 2014
336d737
readme fixed
fprochazka Dec 29, 2014
378fc26
Expect ORM\Event not Search\Event in OrmSearchableListener
fprochazka Dec 29, 2014
60cf953
Fixed race condition when creating index aliases
mkoubik Jan 9, 2015
82b95e8
Merge pull request #1 from fprochazka/fix-create-index
fprochazka Jan 9, 2015
0789622
Autofix type property settings to underscore
fprochazka Apr 10, 2015
a6a9824
Experimental: ClassMetadata->riverImplementation
fprochazka Apr 10, 2015
0a955e0
Fixed serialization of riverImplementation in ClassMetadata
fprochazka Apr 14, 2015
afab25d
Fixed deep clone of ClassMetadata
fprochazka Apr 14, 2015
37f0b7a
Fixed loading '0' value in metadata
fprochazka Apr 14, 2015
7b5b376
Use ClassUtils::getRealClass in UnitOfWork
fprochazka May 15, 2015
cd29a19
Fixed usage of ClassUtils::getRealClass in UoW
fprochazka May 21, 2015
34eeba8
phpdoc
fprochazka Jul 9, 2015
1de14f0
Schedule getters on UnitOfWork
fprochazka Jul 9, 2015
c6d0808
Allow to configure index prefixing
fprochazka Jul 19, 2015
f99f6bf
ChainSerializer: if a serializer serializes type T, it also serialize…
mkoubik Jul 21, 2015
1dcec05
NeonDriver: one mapping can be used also for inherited entities via '…
mkoubik Jul 21, 2015
db46613
Merge pull request #4 from mkoubik/inheritance
fprochazka Jul 31, 2015
85a431e
Fixes the problem with entities not being removed from ES
Nov 1, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Allow to configure index prefixing
fprochazka committed Jul 19, 2015
commit c6d0808c72961ad0b535f0062a6efc5f96d04515
16 changes: 16 additions & 0 deletions lib/Doctrine/Search/Configuration.php
Original file line number Diff line number Diff line change
@@ -38,6 +38,22 @@ class Configuration
*/
private $attributes;

/**
* @param string $prefix
*/
public function setIndexPrefix($prefix)
{
$this->attributes['indexPrefix'] = $prefix;
}

/**
* @return string|NULL
*/
public function getIndexPrefix()
{
return isset($this->attributes['indexPrefix']) ? $this->attributes['indexPrefix'] : NULL;
}

/**
* Gets the cache driver implementation that is used for the mapping metadata.
* (Annotation is the default)
4 changes: 4 additions & 0 deletions lib/Doctrine/Search/Mapping/ClassMetadataFactory.php
Original file line number Diff line number Diff line change
@@ -165,6 +165,10 @@ protected function doLoadMetadata($class, $parent, $rootEntityFound, array $nonS
//Manipulates $classMetadata;
$this->driver->loadMetadataForClass($class->getName(), $class);

if (($prefix = $this->config->getIndexPrefix()) !== NULL) {
$class->index->name = $prefix . $class->index->name;
}

if ($this->evm->hasListeners(Events::loadClassMetadata)) {
$eventArgs = new LoadClassMetadataEventArgs($class, $this->sm);
$this->evm->dispatchEvent(Events::loadClassMetadata, $eventArgs);