Forums / Developer / binary search

binary search

Author Message

Tony Wood

Thursday 18 September 2003 6:30:31 am

Hi,

I am using eZintranet from Demo and have read http://ez.no/developer/ez_publish_3/documentation/incoming/configuring_binary_file_indexing and the optimise routines and have my ezpdftotext setup and it works from the command line.

My problem is I that the search text is not being made available to the search routine.
Where is the debug information from this routine?

tia

tony

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

Paul Borgermans

Thursday 18 September 2003 9:33:12 am

Are you sure the text is not made available? Is ezpdftotext available to the webserver?

Some other things to metion along the obvious:

- There is a search bug: you need a rule for your role which says content|read|*

- Is your binary file in the class made searchable?

- run the updatesearchindex.php script from the commandline, it gives you more clues of what's happening

- check the search index tables in the database, is there anything there from your pdf files?

- is your pdf file protected in some way?

Here its working fine, so it should work for you too. Even with large documents (one OOo generated pdf with 167 pages took roughly 4 seconds to insert which includes indexing).

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Tony Wood

Thursday 18 September 2003 10:35:40 am

Thanks Paul..

- Is your binary file in the class made searchable?

- run the updatesearchindex.php script from the commandline, it gives you more clues of what's happening

did it for me.. the File class in the demo is not searchable so it did not pick it up.. I ran updatesearch and it worked fine :)

Thanks

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

Paul Borgermans

Thursday 18 September 2003 11:21:06 am

Tony,

Glad it works for you too now.

I'm still looking for something that can output text from powerpoint files (under linux).

On the other hand there is more pressure in the OOo forums to have command-line conversions .... wanna do a disappear trick for .doc files into something more persistent (but the wv filter does a good job already).

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

eZ debug

Timing: Jan 18 2025 19:36:44
Script start
Timing: Jan 18 2025 19:36:44
Module start 'content'
Timing: Jan 18 2025 19:36:45
Module end 'content'
Timing: Jan 18 2025 19:36:45
Script end

Main resources:

Total runtime1.3281 sec
Peak memory usage4,096.0000 KB
Database Queries197

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 587.5391180.8516
Module start 'content' 0.00581.1517 768.3906564.6328
Module end 'content' 1.15750.1705 1,333.0234336.7734
Script end 1.3281  1,669.7969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.3142210.0002
Check MTime0.00150.1146210.0001
Mysql Total
Database connection0.00070.054110.0007
Mysqli_queries1.251494.22491970.0064
Looping result0.00250.18961950.0000
Template Total1.299897.920.6499
Template load0.00210.161620.0011
Template processing1.297697.703720.6488
Template load and register function0.00010.008310.0001
states
state_id_array0.00160.123710.0016
state_identifier_array0.00090.067320.0004
Override
Cache load0.00190.1404350.0001
Sytem overhead
Fetch class attribute can translate value0.00100.074230.0003
Fetch class attribute name0.00150.109260.0002
XML
Image XML parsing0.00120.091930.0004
class_abstraction
Instantiating content class attribute0.00000.001880.0000
General
dbfile0.00180.1361340.0001
String conversion0.00000.000430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs