Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LPS-100538 Execute searchEngine.initialize to force index creation in case it doesn't exist #766

Closed
wants to merge 1 commit into from

Conversation

jorgediaz-lr
Copy link

No description provided.

@liferay-continuous-integration
Copy link
Collaborator

To conserve resources, the PR Tester does not automatically run for every pull.

If your code changes were already tested in another pull, reference that pull in this pull so the test results can be analyzed.

If your pull was never tested, comment "ci:test" to run the PR Tester for this pull.

@jorgediaz-lr jorgediaz-lr changed the title LPS-100538 Execute searchEngine.initialize to force index creation in case it doesn't exist [TECHNICAL SUPPORT] LPS-100538 Execute searchEngine.initialize to force index creation in case it doesn't exist Aug 28, 2019
@jorgediaz-lr
Copy link
Author

ci:test:sf

@jorgediaz-lr
Copy link
Author

ci:test:relevant

@liferay-continuous-integration
Copy link
Collaborator

✔️ ci:test:sf - 1 out of 1 jobs passed in 2 minutes 48 seconds 187 ms

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: 52c688f43332cbc7a610ca7e6805cffa6206b4f8

Sender Branch:

Branch Name: LPS-100538
Branch GIT ID: f40a062414011f44e45461bda6eed8b78666fc0b

1 out of 1jobs PASSED
1 Successful Jobs:
For more details click here.

@liferay-continuous-integration
Copy link
Collaborator

✔️ ci:test:sf - 1 out of 1 jobs passed in 3 minutes 52 seconds 776 ms

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: 52c688f43332cbc7a610ca7e6805cffa6206b4f8

Sender Branch:

Branch Name: LPS-100538
Branch GIT ID: f40a062414011f44e45461bda6eed8b78666fc0b

1 out of 1jobs PASSED
1 Successful Jobs:
For more details click here.

@liferay-continuous-integration
Copy link
Collaborator

❌ ci:test:relevant - 22 out of 25 jobs passed in 1 hour 53 minutes 50 seconds 170 ms

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: 5d0d65dfc297911c0e4b52f55a25e3bb9f622ed9

Copied in Private Modules Branch:

Branch Name: master-private
Branch GIT ID: 8e7b693f33a55c66ea8667cde44dc0463f69f348

22 out of 25 jobs PASSED
22 Successful Jobs:
For more details click here.

Failures unique to this pull:

  1. test-portal-acceptance-pullrequest-batch(master)/js-unit-jdk8
    Job Results:

    0 Tests Passed.
    1 Test Failed.

    1. AXIS_VARIABLE=0,label_exp=!master #320146
           [exec] * What went wrong:
           [exec] Execution failed for task ':private:apps:portal-workflow:portal-workflow-metrics-web:packageRunTest'.
           [exec] > java.io.IOException: Process '[/opt/dev/projects/github/liferay-portal/build/node/bin/node, /opt/dev/projects/github/liferay-portal/modules/yarn-1.13.0.js, --production, false, --registry, http://mirrors.lax.liferay.com:4873, run, test]' finished with non-zero exit value 1
           [exec] 
           [exec] * Try:
           [exec] Run with --info or --debug option to get more log output. Run with --scan to get full insights.
           [exec] 
           [exec] * Exception is:
           [exec] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':private:apps:portal-workflow:portal-workflow-metrics-web:packageRunTest'.
           [exec] 	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:110)
           [exec] 	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:77)
           [exec] 	at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)
           [exec] 	at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:59)
           [exec] 	at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
           [exec] 	at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:59)
           [exec] 	at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:101)
           [exec] 	at org.gradle.api.internal.tasks.execution.FinalizeInputFilePropertiesTaskExecuter.execute(FinalizeInputFilePropertiesTaskExecuter.java:44)
           [exec] 	at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:91)
           [exec] 	at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:62)
           [exec] 	at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:59)
           [exec] 	at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
  2. test-portal-acceptance-pullrequest-batch(master)/modules-integration-mysql57-jdk8
    Job Results:

    9 Tests Passed.
    1 Test Failed.

    1. AXIS_VARIABLE=0,label_exp=!master #320150
           [exec] * What went wrong:
           [exec] Execution failed for task ':apps:portal:portal-jmx-test:startTestableTomcat'.
           [exec] > Timeout while waiting for the application server
           [exec] 
           [exec] * Try:
           [exec] Run with --info or --debug option to get more log output. Run with --scan to get full insights.
           [exec] 
           [exec] * Exception is:
           [exec] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':apps:portal:portal-jmx-test:startTestableTomcat'.
           [exec] 	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:110)
           [exec] 	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:77)
           [exec] 	at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)
           [exec] 	at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:59)
           [exec] 	at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
           [exec] 	at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:59)
           [exec] 	at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:101)
           [exec] 	at org.gradle.api.internal.tasks.execution.FinalizeInputFilePropertiesTaskExecuter.execute(FinalizeInputFilePropertiesTaskExecuter.java:44)
           [exec] 	at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:91)
           [exec] 	at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:62)
           [exec] 	at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:59)
           [exec] 	at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
           [exec] 	at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
           [exec] 	at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
           [exec] 	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.run(EventFiringTaskExecuter.java:51)

For upstream results, click here.

@jorgediaz-lr
Copy link
Author

Hi @arboliveira

Do you have any update about this PR?

Thank you

@lipusz
Copy link

lipusz commented Sep 9, 2019

ci:test:search

@liferay-continuous-integration
Copy link
Collaborator

❌ ci:test:search - 0 out of 1 jobs passed in 15 minutes 55 seconds 647 ms

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: f56de07a75a0d3f0c5f919bd175ca9e12195e9e7

Copied in Private Modules Branch:

Branch Name: master-private
Branch GIT ID: 0660bcc11a8369eca9f1d7e6eb8ce16965db9131

0 out of 1 jobs PASSED
For more details click here.

Failures unique to this pull:

  1. test-portal-acceptance-pullrequest(master)
    Job Results:

    0 Jobs Passed.
    1 Job Failed.

         [exec] * What went wrong:
         [exec] Could not resolve all files for configuration ':private:apps:portal-mobile-device-detection-fiftyonedegrees-enterprise:portal-mobile-device-detection-fiftyonedegrees-enterprise:dat'.
         [exec] > Could not resolve com.liferay:com.51degrees.dat.enterprise:3.2-20190801.
         [exec]   Required by:
         [exec]       project :private:apps:portal-mobile-device-detection-fiftyonedegrees-enterprise:portal-mobile-device-detection-fiftyonedegrees-enterprise
         [exec]    > Could not resolve com.liferay:com.51degrees.dat.enterprise:3.2-20190801.
         [exec]       > Could not get resource 'http://repository-cdn.liferay.com/nexus/content/groups/public/com/liferay/com.51degrees.dat.enterprise/3.2-20190801/com.51degrees.dat.enterprise-3.2-20190801.pom'.
         [exec]          > Could not GET 'http://repository-cdn.liferay.com/nexus/content/groups/public/com/liferay/com.51degrees.dat.enterprise/3.2-20190801/com.51degrees.dat.enterprise-3.2-20190801.pom'.
         [exec]             > Read timed out
         [exec] 
         [exec] * Try:
         [exec] Run with --info or --debug option to get more log output. Run with --scan to get full insights.
         [exec] 
         [exec] * Exception is:
         [exec] org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration\$ArtifactResolveException: Could not resolve all files for configuration ':private:apps:portal-mobile-device-detection-fiftyonedegrees-enterprise:portal-mobile-device-detection-fiftyonedegrees-enterprise:dat'.
         [exec] 	at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.rethrowFailure(DefaultConfiguration.java:1054)
         [exec] 	at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.access\$1700(DefaultConfiguration.java:123)
         [exec] 	at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration\$ConfigurationFileCollection.getFiles(DefaultConfiguration.java:1028)
         [exec] 	at org.gradle.api.internal.file.AbstractFileCollection.iterator(AbstractFileCollection.java:76)
         [exec] 	at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.iterator(DefaultConfiguration.java:439)
         [exec] 	at org.gradle.api.internal.file.collections.DefaultFileCollectionResolveContext\$FileTreeConverter.convertInto(DefaultFileCollectionResolveContext.java:217)
         [exec] 	at org.gradle.api.internal.file.collections.DefaultFileCollectionResolveContext.doResolve(DefaultFileCollectionResolveContext.java:117)

For upstream results, click here.

@jorgediaz-lr
Copy link
Author

ci:test:search

@liferay-continuous-integration
Copy link
Collaborator

❌ ci:test:search - 19 out of 22 jobs passed in 1 hour 20 minutes 25 seconds 926 ms

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: f56de07a75a0d3f0c5f919bd175ca9e12195e9e7

Copied in Private Modules Branch:

Branch Name: master-private
Branch GIT ID: 0660bcc11a8369eca9f1d7e6eb8ce16965db9131

19 out of 22 jobs PASSED
19 Successful Jobs:
For more details click here.

This pull contains no unique failures.


Failures in common with acceptance upstream results at f56de07:
  1. test-portal-acceptance-pullrequest-batch(master)/central-requirements-jdk8
    Job Results:

    6 Tests Passed.
    1 Test Failed.

    1. AXIS_VARIABLE=0,label_exp=!master #291079
      1. ModulesStructureTest.testScanBuildScripts
        junit.framework.AssertionFailedError: Missing modules/apps/batch-engine/build.gradle
        	at com.liferay.portal.modules.util.ModulesStructureTestUtil.read(ModulesStructureTestUtil.java:134)
        	at com.liferay.portal.modules.ModulesStructureTest._testEquals(ModulesStructureTest.java:951)
        	at com.liferay.portal.modules.ModulesStructureTest.access$300(ModulesStructureTest.java:65)
        	at com.liferay.portal.modules.ModulesStructureTest$1.preVisitDirectory(ModulesStructureTest.java:195)
        	at com.liferay.portal.modules.ModulesStructureTest$1.preVisitDirectory(ModulesStructureTest.java:121)
        	at java.nio.file.Files.walkFileTree(Files.java:2677)
        	at java.nio.file.Files.walkFileTree(Files.java:2742)
        	at com.liferay.portal.modules.ModulesStructureTest.testScanBuildScripts(ModulesStructureTest.java:119)
        
  2. test-portal-acceptance-pullrequest-batch(master)/modules-integration-mysql57-jdk8
    Job Results:

    1430 Tests Passed.
    6 Tests Failed.

    1. AXIS_VARIABLE=0,label_exp=!master #291080
      1. AssetSearcherStagingTest.testSiteRolePermissions
        java.lang.AssertionError: {level=ERROR, loggerName=com.liferay.portal.background.task.internal.messaging.BackgroundTaskMessageListener, message=Unable to execute background task
        	at com.liferay.portal.test.rule.LogAssertionAppender.append(LogAssertionAppender.java:60)
        	at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
        	at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)
        	at org.apache.log4j.Category.callAppenders(Category.java:206)
        	at org.apache.log4j.Category.forcedLog(Category.java:391)
        	at org.apache.log4j.Category.log(Category.java:856)
        	at com.liferay.portal.log.Log4jLogImpl.error(Log4jLogImpl.java:54)
        	at com.liferay.portal.kernel.log.LogWrapper.error(LogWrapper.java:69)
        	at com.liferay.portal.background.task.internal.messaging.BackgroundTaskMessageListener.doReceive(BackgroundTaskMessageListener.java:172)
        	at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
        	at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74)
        	at com.liferay.portal.kernel.messaging.SynchronousDestination.send(SynchronousDestination.java:41)
        	at com.liferay.portal.messaging.internal.DefaultMessageBus.sendMessage(DefaultMessageBus.java:309)
        	at com.liferay.portal.kernel.messaging.MessageBusUtil.sendMessage(MessageBusUtil.java:82)
        	at com.liferay.portal.background.task.service.impl.BackgroundTaskLocalServiceImpl.triggerBackgroundTask(...
      2. PortalLogAssertorTest.testScanXMLLog
        junit.framework.AssertionFailedError: 
        Error executing FreeMarker template
        FreeMarker template error:
        The following has evaluated to null or missing:
        ==> content  [in template "20097#20124#BASIC-WEB-CONTENT" at line 1, column 3]
        

        Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??


        FTL stack trace ("~" means nesting-related):
        - Failed at: ${content.getData()} [in template "20097#20124#BASIC-WEB-CONTENT" at line 1, column 1]

        Java stack trace (for programmers):

        freemarker.core.InvalidReferenceException: [... Exception message was already printed; see it above ...]
        at freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:131)
        at freemarker.core.UnexpectedTypeException.newDesciptionBuilder(UnexpectedTypeException.java:77)
        at freemarker.core.UnexpectedTypeException.<init>(UnexpectedTypeException.java:40)
        at freemarker.core.NonHashException.<init>(NonHashException.java:46)
        at freemarker.core.Dot._eval(Dot.java:45)
        at freemarker.core.Expression.eval(Expression.java:78)
        at freemarker.core.MethodCall._eval(MethodCall.java:55)
        at freemarker.core.Expression.eval(Expression.java:78)
        at fre...

    2. AXIS_VARIABLE=1,label_exp=!master #291080
      1. PortalLogAssertorTest.testScanXMLLog
        junit.framework.AssertionFailedError:
        Email test@liferay.com will be ignored because it is included in mail.send.blacklist
        at com.liferay.portal.log.assertor.PortalLogAssertorTest.scanXMLLogFile(PortalLogAssertorTest.java:172)
        at com.liferay.portal.log.assertor.PortalLogAssertorTest$1.visitFile(PortalLogAssertorTest.java:98)
        at com.liferay.portal.log.assertor.PortalLogAssertorTest$1.visitFile(PortalLogAssertorTest.java:88)
        at java.nio.file.Files.walkFileTree(Files.java:2670)
        at java.nio.file.Files.walkFileTree(Files.java:2742)
        at com.liferay.portal.log.assertor.PortalLogAssertorTest.testScanXMLLog(PortalLogAssertorTest.java:86)
    3. AXIS_VARIABLE=10,label_exp=!master #291080
      1. PortalLogAssertorTest.testScanXMLLog
        junit.framework.AssertionFailedError:
        Email test@domain.invalid will be ignored because it is included in mail.send.blacklist
        at com.liferay.portal.log.assertor.PortalLogAssertorTest.scanXMLLogFile(PortalLogAssertorTest.java:172)
        at com.liferay.portal.log.assertor.PortalLogAssertorTest$1.visitFile(PortalLogAssertorTest.java:98)
        at com.liferay.portal.log.assertor.PortalLogAssertorTest$1.visitFile(PortalLogAssertorTest.java:88)
        at java.nio.file.Files.walkFileTree(Files.java:2670)
        at java.nio.file.Files.walkFileTree(Files.java:2742)
        at com.liferay.portal.log.assertor.PortalLogAssertorTest.testScanXMLLog(PortalLogAssertorTest.java:86)
    4. AXIS_VARIABLE=2,label_exp=!master #291080
      1. PortalLogAssertorTest.testScanXMLLog
        junit.framework.AssertionFailedError:
        Email test@domain.invalid will be ignored because it is included in mail.send.blacklist
        at com.liferay.portal.log.assertor.PortalLogAssertorTest.scanXMLLogFile(PortalLogAssertorTest.java:172)
        at com.liferay.portal.log.assertor.PortalLogAssertorTest$1.visitFile(PortalLogAssertorTest.java:98)
        at com.liferay.portal.log.assertor.PortalLogAssertorTest$1.visitFile(PortalLogAssertorTest.java:88)
        at java.nio.file.Files.walkFileTree(Files.java:2670)
        at java.nio.file.Files.walkFileTree(Files.java:2742)
        at com.liferay.portal.log.assertor.PortalLogAssertorTest.testScanXMLLog(PortalLogAssertorTest.java:86)
    5. ...

@jorgediaz-lr
Copy link
Author

Hi @arboliveira

Do you have any update about this PR?

Thank you

/cc: @lipusz

@lipusz
Copy link

lipusz commented Sep 10, 2019 via email

@jorgediaz-lr
Copy link
Author

Thank you for the info, @lipusz

@jorgediaz-lr
Copy link
Author

Hi @lipusz @arboliveira

Do you have any update about this PR?

Thank you

@lipusz
Copy link

lipusz commented Oct 9, 2019

Hi Jorge,

As it's not related to any current customer issues, probably it will be picked after the ongoing LES development is done (end of Oct/early Nov).

@arboliveira Correct me if I'm wrong.

@jorgediaz-lr Can you please remove the [Technical Support] designation from the subject in the meantime?

Sorry about the delay and thank you for your understanding.

Regards,
Tibi

@jorgediaz-lr
Copy link
Author

jorgediaz-lr commented Oct 9, 2019

Hi @lipusz

One month ago, you said:

This might take some time to review: currently the SP1 features take the
priority and since there is no actual customer waiting for this fix I think
it's okay to return to this later.

Now you are saying:

As it's not related to any current customer issues, probably it will be picked after the ongoing LES development is done (end of Oct/early Nov).

In my opinion, product team will always have anything to do that is top priority due some deadline. (e.g.: after LES development: 7.3 release)

If you think this won't be reviewed soon and it isn't an important issue, to avoid having this PR as a pending task in my PR list, I prefer simply closing it and leave the LPS unassigned.

Thank you

/cc: @arboliveira

@lipusz
Copy link

lipusz commented Oct 9, 2019

In my opinion, product team will always have anything to do that is top priority due some deadline. (7.3 release?)

That's true, in general. Though currently we have a much tighter deadline than we have normally and that's causing to postpone anything else that is not urgent. We expect to have more time to follow-up on pending tasks after these developments are done.

Your PR won't be forgotten I promise.

Cheers,
Tibi

@jorgediaz-lr
Copy link
Author

Hi @lipusz @arboliveira

Do you have any update about this PR review?

It is pending since October 2019.

Regards,
Jorge

@jorgediaz-lr jorgediaz-lr changed the title [TECHNICAL SUPPORT] LPS-100538 Execute searchEngine.initialize to force index creation in case it doesn't exist LPS-100538 Execute searchEngine.initialize to force index creation in case it doesn't exist Jan 16, 2020
@jorgediaz-lr
Copy link
Author

Hi @arboliveira

Did you read my last message?

Thank you

@jorgediaz-lr
Copy link
Author

Hi @arboliveira @lipusz @BryanEngler,

Do you have any update about this PR?

Thank you

@BryanEngler
Copy link

@jorgediaz-lr we just started a new sprint today, this pr should be picked up by one of the search engineers during the sprint

@jorgediaz-lr
Copy link
Author

jorgediaz-lr commented Feb 25, 2020

Hi @BryanEngler

Thank you for the information. I will wait until new sprint is finished

for (long companyId : companyIds) {
ReindexStatusMessageSenderUtil.sendStatusMessage(
ReindexBackgroundTaskConstants.SINGLE_START, companyId,
companyIds);

try {
for (SearchEngine searchEngine : searchEngines) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @jorgediaz-lr!

I'm taking care of this pull request. I wonder, is there some reason to get all search engines and initialize all of them? I mean, couldn't we just get the current search engine (with SearchEngineHelpverUtil.getSearchEngine(indexer.getSearchEngineId())) and initialize it?

Thanks!

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @brandizzi,

I just copied the initialization code that is executed when you do a full reindex, to the partial reindex code.

During a full reindex, following code is executed:

  1. ReindexPortalBackgroundTaskExecutor.reindex(String className, long[] companyIds)
  2. SearchEngineInitializer.reindex()
  3. SearchEngineInitializer.reindex(int delay)
  4. SearchEngineInitializer.doReIndex(int delay)
  5. SearchEngineHelperImpl.initialize(long companyId)

In that code SearchEngineHelperImpl.initialize(long companyId) all search engines are initialized:

	public synchronized void initialize(long companyId) {
		if (_companyIds.containsKey(companyId)) {
			return;
		}

		_companyIds.put(companyId, companyId);

		for (SearchEngine searchEngine : _searchEngines.values()) {
			searchEngine.initialize(companyId);
		}
	}

Am I missing something?

@jorgediaz-lr
Copy link
Author

Merged here: brianchandotcom#86615

Thank you, @brandizzi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants