Search embedded files?

Author Message

Nicklas Lundgren

Tuesday 04 August 2009 2:25:50 am

Hi,

I have problems with making embedded files searchable, in the default eZ Search engine.

When embedding a pdf-file from the media library into an article, I want that pdf-file to be searchable, even though the media library itself is not searchable.

I think this should make sense, since the media library then can be a repository where not everything is visible to the visitors. Then, using the online editor, I can embed files from media library into articles. And of course, then the file embedded should be searchable.

Does anyone have an idea on how to achieve this?

Best regards!
/Nicklas

Nicklas Lundgren, Managing Director
Novitell AB, Sweden

André R.

Tuesday 04 August 2009 3:37:26 am

This is currently not possible.
But this is work in progress in ezfind, where similar support for the relation and relation list datatypes where added (in next version, 2.1 I think). embeds in ezxml text could be added as well in a similar way.

The result is that when you search for something that exists in the embed/related object, then the object that embeds it will also show up in search results. So in your case the article will show up, and I guess that is what you want ( as letting the pdf show up on its own when user can't read it, wouldn't make sense imho ).

EDIT: The new "subattribute" feature will be extensible and documented, so it will be possible to write meta data extractors for data types like ezxmltext and others easily.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

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 18 2025 16:02:46
Script start
Timing: Jan 18 2025 16:02:46
Module start 'layout'
Timing: Jan 18 2025 16:02:46
Module start 'content'
Timing: Jan 18 2025 16:02:46
Module end 'content'
Timing: Jan 18 2025 16:02:46
Script end

Main resources:

Total runtime0.0152 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 587.8906152.6094
Module start 'layout' 0.00590.0024 740.500039.4141
Module start 'content' 0.00830.0050 779.914189.3047
Module end 'content' 0.01330.0019 869.218834.3047
Script end 0.0152  903.5234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002717.4711140.0002
Check MTime0.00138.5380140.0001
Mysql Total
Database connection0.00095.670010.0009
Mysqli_queries0.002113.488330.0007
Looping result0.00000.097210.0000
Template Total0.001610.610.0016
Template load0.00095.906810.0009
Template processing0.00074.675910.0007
Override
Cache load0.00064.216510.0006
General
dbfile0.00021.536780.0000
String conversion0.00000.051740.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