Closed vsaar closed 11 years ago
By the way, when installing the plugin from the codebase, you should do a package-plugin command before and install the zip. The package-plugin command will remove all classes from the "test" package of the plugin (which should includes all test domain classes, controllers, services and tests).
Now there is warning "Type [*] contains a '.', it is recommended not to include it within a type name" http://elasticsearch-users.115913.n3.nabble.com/Type-name-warning-td2949735.html
In ran into this issue while using a local checkout of the plugin. My app has a
my.package.User
andmy.package.Tag
domain class just as the plugin has. When I persist instances of my users, bulk index items are never removed from the operation batch list, becausetest.User
is assumed to be the domain class' type, effectively resulting in an endless loop, as items are pushed again and again.Mapping the domain class to the Elastic type name only takes the simple class name into account.
my.package.User
andtest.User
are both mapped touser
.This pull request is fixing this by using the fully-qualified class name, e.g.
my.package.user
andtest.user
.