Created
July 12, 2016 02:16
-
-
Save cosbor11/a37fa7c6c54c57b6c8e7673fe23bf480 to your computer and use it in GitHub Desktop.
Manually trigger the rebuilding of an index
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final EntityDescriptor entityDescriptor = persistenceManager.getContext().getDescriptorForEntity(Payment.class, ""); | |
final IndexDescriptor indexDescriptor = entityDescriptor.getIndexes().get("notes"); | |
final IndexController indexController = persistenceManager.getContext().getIndexController(indexDescriptor); | |
indexController.rebuild(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment