PDF indexing

Author Message

Michael Hall

Wednesday 05 March 2008 4:15:08 am

Does EZ4's search indexing capability include indexing PDF files?

Tony Wood

Wednesday 05 March 2008 5:06:47 am

For this I would recommend using eZ Find. It is based on Lucene so does a very good job.

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Michael Hall

Wednesday 05 March 2008 4:40:35 pm

OK, well I got the old PDF indexing working using pdftotext ... much the same mechanism as good old htdig.

eZ Find seems to be the way to go, even though it means adding a JRE to the server to run it.

We'll be indexing quite large PDF files (historical newspaper collection).

I'm yet to run a trial, but I'm wondering how eZFind works at the database end and whether potentially very large chunks of data will cause problems, as seemed to happen with the old system?

Also, does anyone know if eZ Find uses some kind of stop list (list of common functional words with little semantic content like "the, a, and, it" etc)?
At a glance, the older system doesn't seem to filter these out. These words are among the most commonly used, and filtering them out of results can significantly reduce the amount of data needing processing without having much impact on the effectiveness of a search.

Andy Caiger

Tuesday 18 May 2010 1:28:41 am

Although using eZ Find has been recommended, it's quite a bit of work to get it working. It does seem that eZ Publish 4 does not index PDFs. Can anyone explain how to get it working without installing eZ Find? I'm using eZ Publish 4.2.

EAB - Integrated Internet Success
Offices in England, France & China.
http://www.eab.co.uk http://www.eab-china.com http://www.eab-france.com

Gaetano Giunta

Tuesday 18 May 2010 9:51:58 am

All you need to do is to edit the

 [PDFHandlerSettings]

TextExtractionTool=pstotext

block in binaryfile.ini.

I'd recommend to substitute pstotext with the name of a cli script you have written. That script can simply echo to a log file the current date and the parameters it receives (1st one is the path to the pdf file to be converted to plain text).

This will get you started with debugging

Principal Consultant International Business
Member of the Community Project Board

Andy Caiger

Tuesday 18 May 2010 6:55:21 pm

Thanks! This is a great idea and helped me solve the problem quickly, together with advice given at http://ez.no/ezpublish/documentation/configuration/optimization/speeding_up_acrobat_pdf_document_indexing_

:-)

EAB - Integrated Internet Success
Offices in England, France & China.
http://www.eab.co.uk http://www.eab-china.com http://www.eab-france.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 30 2025 23:03:38
Script start
Timing: Jan 30 2025 23:03:38
Module start 'layout'
Timing: Jan 30 2025 23:03:38
Module start 'content'
Timing: Jan 30 2025 23:03:38
Module end 'content'
Timing: Jan 30 2025 23:03:38
Script end

Main resources:

Total runtime0.0275 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 588.1250151.2109
Module start 'layout' 0.00560.0040 739.3359220.6875
Module start 'content' 0.00960.0161 960.02341,005.9141
Module end 'content' 0.02570.0017 1,965.937537.9922
Script end 0.0274  2,003.9297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00269.5838140.0002
Check MTime0.00113.8594140.0001
Mysql Total
Database connection0.00124.251610.0012
Mysqli_queries0.00238.427830.0008
Looping result0.00000.047710.0000
Template Total0.00114.110.0011
Template load0.00093.330810.0009
Template processing0.00020.779310.0002
Override
Cache load0.00062.289410.0006
General
dbfile0.004616.647380.0006
String conversion0.00000.033040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs