Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -197,3 +197,4 @@ build/NuGet.exe
src/.UmbracoExamine.PDF.boltdata/*
/build/tmp/*
/build/vswhere.exe
src/.idea
8 changes: 8 additions & 0 deletions src/UmbracoExamine.PDF/IUmbracoPdfIndex.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
using Examine;

namespace UmbracoExamine.PDF
{
public interface IUmbracoPdfIndex : IIndex
{
}
}
6 changes: 3 additions & 3 deletions src/UmbracoExamine.PDF/PdfIndexPopulator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace UmbracoExamine.PDF
/// <summary>
/// Performs the data lookups required to rebuild a PDF index
/// </summary>
public class PdfIndexPopulator : IndexPopulator
public class PdfIndexPopulator : IndexPopulator<IUmbracoPdfIndex>
{
private readonly IExamineManager _examineManager;
private readonly IMediaService _mediaService;
Expand Down Expand Up @@ -43,7 +43,7 @@ public PdfIndexPopulator(int? parentId, IMediaService mediaService,
_mediaService = mediaService;
_mediaValueSetBuilder = mediaValueSetBuilder;
_examineManager = examineManager;
RegisterIndex(PdfIndexConstants.PdfIndexName);
// RegisterIndex(PdfIndexConstants.PdfIndexName);
}


Expand All @@ -68,7 +68,7 @@ public void RemoveFromIndex(params int[] mediaIds)
var ids = mediaIds.Select(m => m.ToInvariantString());
index.DeleteFromIndex(ids);
}

/// <summary>
/// Add any media that is a pdf to the PDFIndex
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/UmbracoExamine.PDF/PdfLuceneIndex.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
namespace UmbracoExamine.PDF
{

public class PdfLuceneIndex : LuceneIndex, IIndexDiagnostics
public class PdfLuceneIndex : LuceneIndex, IIndexDiagnostics, IUmbracoPdfIndex
{
public PdfLuceneIndex(string name, Directory luceneDirectory, FieldDefinitionCollection fieldDefinitions,
Analyzer analyzer, PdfValueSetValidator validator,
Expand Down
1 change: 1 addition & 0 deletions src/UmbracoExamine.PDF/UmbracoExamine.PDF.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@
</ItemGroup>
<ItemGroup>
<Compile Include="IPdfTextExtractor.cs" />
<Compile Include="IUmbracoPdfIndex.cs" />
<Compile Include="PdfIndexConstants.cs" />
<Compile Include="PdfIndexDiagnostics.cs" />
<Compile Include="PdfPigTextExtractor.cs" />
Expand Down