<!-- This search provider is used to search the PDFIndexSet. --> <add name="PDFSearcher" type="UmbracoExamine.UmbracoExamineSearcher, UmbracoExamine" analyzer="Lucene.Net.Analysis.WhitespaceAnalyzer, Lucene.Net" indexSet="PDFIndexSet" />
This breaks the Examine Dashboard when I reload it:
Parser Error Message: Could not load file or assembly 'UmbracoExamine.PDF' or one of its dependencies. The system cannot find the file specified.
There's nothing meaningful in the logs:
I do have some code that uses the ExternalIndexSet, it can be seen here. This also breaks when adding the PDFIndexer line to ExamineIndex.config. It reports:
The type initializer for 'Examine.ExamineManager' threw an exception.
Thanks Rory, you were right. I don't know how I missed that. I'd had the impression that it was all built in and that you didn't need to download any other assemblies.
PDFIndexer
Anyone can help me on how to index pdfs in Examine??
Here is my ExamineSettings.config
<ExamineIndexProviders>
<providers>
<add name="InternalIndexer" type="UmbracoExamine.LuceneExamineIndexer, UmbracoExamine"
runAsync="true"
supportUnpublished="true"
supportProtected="true"
interval="10"
analyzer="Lucene.Net.Analysis.WhitespaceAnalyzer, Lucene.Net"/>
<add name="DemoIndexer" type="UmbracoExamine.LuceneExamineIndexer, UmbracoExamine"
runAsync="true"
supportUnpublished="false"
supportProtected="true"
interval="10"
analyzer="Lucene.Net.Analysis.WhitespaceAnalyzer, Lucene.Net"
indexSet="DemoIndexSet"/>
<add name="PDFIndexer"
type="UmbracoExamine.PDF.PDFIndexer, UmbracoExamine.PDF"
extensions=".pdf"
umbracoFileProperty="umbracoFile"/>
</providers>
</ExamineIndexProviders>
<ExamineSearchProviders defaultProvider="InternalSearcher">
<providers>
<add name="InternalSearcher" type="UmbracoExamine.LuceneExamineSearcher, UmbracoExamine"
analyzer="Lucene.Net.Analysis.WhitespaceAnalyzer, Lucene.Net"/>
<add name="DemoSearcher"
type="UmbracoExamine.LuceneExamineSearcher, UmbracoExamine"
analyzer="Lucene.Net.Analysis.WhitespaceAnalyzer, Lucene.Net"
indexSet="DemoIndexSet"/>
<!-- This search provider is used to search the PDFIndexSet. -->
<add name="PDFSearcher"
type="UmbracoExamine.UmbracoExamineSearcher, UmbracoExamine"
analyzer="Lucene.Net.Analysis.WhitespaceAnalyzer, Lucene.Net"
indexSet="PDFIndexSet" />
</providers>
</ExamineSearchProviders>
Am getting Config errors!!!
Fuji,
He is what I have got for pdf indexing in ExamineIndex and ExamineSettings files respectively
<IndexSet SetName="PDFIndexSet" IndexPath="~/App_Data/ExamineIndexes/PDFIndexSet" IndexParentId="-1"/>
<add name="PDFIndexer"
type="UmbracoExamine.PDF.PDFIndexer, UmbracoExamine.PDF"/>
Regards
Ismail
Hi Ismail
Ive replaced the PDFIndexer and PDFIndexSet but still nothing is happening. Getting a web config error instead.
Fuji
whats the error also are you using latest rtm of examine?
Regards
Ismail
Do i need to Index the folder with Lucene???
I gave it a try and this is the message am getting "No valid directory at the location, try another location."
Fuji
Am not sure am using the one that come with Umbraco V4.5.1
Fuji
Here is the error msg am getting
Could not load file or assembly 'UmbracoExamine.PDF' or one of its dependencies. The system cannot find the file specified.
Fuji
you probably dont have that in your bin as you have older version of examine can you download latest from codeplex.
Regards
Ismail
Ive Just copied the latest version but nothing is showing up in my search.
I returns "0" all the time.
Any advise??
fuji
Fuji,
Download luke and view your index just to confirm there is something in there http://www.getopt.org/luke/
Nothing is being index.....my result is "0" in Luke
Weird when i paste the new Examine.dll ive lost all my indexes as well... the search is alwasy returning "0" results for bodyText and pdf as well.
Ismail
Ok everything is back to normal but still no indexing with pdf.
I'm getting the same error in a fresh install of 4.11.3.
When I go into the Examine Dashboard (installed package) I see the following error.
Parser Error Message: Could not load file or assembly 'UmbracoExamine.PDF' or one of its dependencies. The system cannot find the file specified.
Source Error:
Line 30: Line 31: <add name="PDFIndexer" Line 32: type="UmbracoExamine.PDF.PDFIndexer, UmbracoExamine.PDF"/> Line 33: Line 34: </providers>
Source File: D:\Websites\Umbraco411\Solution1\WebApplication1\config\ExamineSettings.config Line: 32
All the assemblies are the latest.
Browsing the UmbracoExamine doesn't seem to mention PDF anywhere.
I'me using
<IndexSet SetName="PDFIndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/PDF/" IndexParentId="-1"/>
and
<add name="PDFIndexer" type="UmbracoExamine.PDF.PDFIndexer, UmbracoExamine.PDF"/>
Regards,
Matt
have you got latest examine from codeplex?
Hi Ismail,
Yes, I've tried the binaries that come with 4.11.3, the Standard Examine Binaries and Umbraco Examine Binaries from CodePlex.
All cause an error as soon as I add <add name="PDFIndexer" type="UmbracoExamine.PDF.PDFIndexer, UmbracoExamine.PDF"/> to the ExamineSettings.confg.
I suspect it's something very simple, is the line above correct?
Regards,
Matt
check your umbraco logs also are you doign anything with gatherinnode data event?
Hi Ismail,
I'm not using the GatheringNodeData event. In fact I've not written any code yet to use the PDF index, I'm simply trying to set the index up.
I've got a new Umbraco 4.11.3 install with the 'Examine Dashboard' & 'FALM Housekeeping' packages installed.
The Examine Dashboard shows:
I add the following line to ExamineIndex.config:
<IndexSet SetName="PDFIndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/PDF/" IndexParentId="-1"/>
and all is good, reloading the Examine Dashboard shows it has picked it up:
Next I add the following line to line to ExamineSettings.config:
<add name="PDFIndexer" type="UmbracoExamine.PDF.PDFIndexer, UmbracoExamine.PDF"/>
This breaks the Examine Dashboard when I reload it:
Parser Error Message: Could not load file or assembly 'UmbracoExamine.PDF' or one of its dependencies. The system cannot find the file specified.
There's nothing meaningful in the logs:
I do have some code that uses the ExternalIndexSet, it can be seen here.
This also breaks when adding the PDFIndexer line to ExamineIndex.config.
It reports:
The type initializer for 'Examine.ExamineManager' threw an exception.
I hope that makes sense.
Cheers, Matt
Looks like you need to download the dll - UmbracoExamine.PDF.dll
You can get it here - http://examine.codeplex.com/releases/view/77362
It's the 2nd one in 'other available downloads'. Umbraco Examine PDF binaries
Thanks Rory, you were right.
I don't know how I missed that. I'd had the impression that it was all built in and that you didn't need to download any other assemblies.
Cheers, Matt
is working on a reply...