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

Custom deliverable - Examine index wrong LuceneIndexFolder #102

Open
giordanop opened this issue Jan 29, 2021 · 0 comments
Open

Custom deliverable - Examine index wrong LuceneIndexFolder #102

giordanop opened this issue Jan 29, 2021 · 0 comments

Comments

@giordanop
Copy link

giordanop commented Jan 29, 2021

What went wrong?

I'm writing a custom deliverable "rebuildindex", which rebuilds the Examine indexes.
This is the code snippet:

public override async Task<DeliverableResponse> Run(string command, string[] args)
{
      await Out.WriteLineAsync("rebuildindex START");
      ExamineManager.Instance.RebuildIndex();
      return DeliverableResponse.Continue;
}

So, quite simple.

What should have happened?

I would expect that indexes are correctly updated in their folder "\wwwroot\App_Data\TEMP\ExamineIndexes..." , but they are built in another folder: "\wwwroot\~\App_Data\TEMP\ExamineIndexes..."

Debugging, I see that the LuceneIndexFolder contains the wrong folder
(UmbracoExamine.UmbracoContentIndexer) ExamineManager.Instance.IndexProviderCollection[2]).LuceneIndexFolder contains "\wwwroot\~\App_Data\TEMP\ExamineIndexes\..."

How can I reproduce the issue?

  1. I installed Chauffeur
  2. I implemented a custom deliverable "rebuildIndex"
  3. I ran Chauffeur with "rebuildIndex"
  4. It creates a new folder structure under "\wwwroot\~\App_Data\TEMP\ExamineIndexes" and rebuilds indexes inside it

Environment

umbraco> settings
Setting | Value
Umbraco Version | 7.15.6
InternalName: Chauffeur.dll
OriginalFilename: Chauffeur.dll
FileVersion: 1.4.1
FileDescription: Chauffeur
Product: Chauffeur
ProductVersion: 1.4.1
Debug: False
Patched: False
PreRelease: False
PrivateBuild: False
SpecialBuild: False
Language: Language Neutral

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

No branches or pull requests

1 participant