[ezfind] File (Media) used in a Content subtree's content

Author Message

Guillaume Bourreau

Monday 09 February 2009 7:30:43 am

Hi all,

I am a new developer on eZ Publish, so sorry if I my words are not clear or obvious...

I am using ezfind for my site and its pretty good for now.
However I have some issues and questions about it.

1) What's about subtree search, including locations ? Now only main node search work. If a content has many location, only a search on its main subtree get this content.

2) I have the following problem with subtree search functionnality.

On one hand, I have a content in the Content subtree, in a "News" subtree for example.
This content has a "ezcontentobjectrelation(s)" field, or a "online editor" field in which we can have a embed objet (similar to a "ezcontentobjectrelation" feature).

On the other hand, in the Media subtree, in Files folder, I have a File.

So my content is "linked" to the File using the "ezcontentobjectrelation(s)" field.

So, if I search on the whole subtree, I can get results from Content subtree and Media subtree, so I can get my Content and my File, if both match my search text.

But now, If I select the "News" subtree, l logically only get the Content, not the File attached.

Even if it's logical, this a big problem for me, because the "News" subtree can be considered by a internet user as a set of contents and files.

So If a user want to search in "News" subtree, he want to get Contents and Files used in thoses Contents (using the "ezcontentobjectrelation(s)" field for example).

Do you have a solution to my problem ?
Maybe it's a design problem... It will be simpler to use an "ezbinaryfile" field instead an "ezcontentobjectrelation(s)" field, but I can't.

Thank you very much if you can help me to keep moving on this issue.
Feel free to ask me should need more precisions.

Guillaume

Nicklas Lundgren

Tuesday 04 August 2009 2:21:12 am

Why isĀ“nt anyone responding to Guillaumes question? I think it is really relevant, and not only for eZ Find, but also for the default eZ Search engine.

I too have problems with making embedded files searchable, but 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.

Does anyone have an idea on how to achieve this?

Best regards!
/Nicklas

Nicklas Lundgren, Managing Director
Novitell AB, Sweden

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 05:04:23
Script start
Timing: Jan 18 2025 05:04:23
Module start 'layout'
Timing: Jan 18 2025 05:04:23
Module start 'content'
Timing: Jan 18 2025 05:04:24
Module end 'content'
Timing: Jan 18 2025 05:04:24
Script end

Main resources:

Total runtime0.4346 sec
Peak memory usage4,096.0000 KB
Database Queries56

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 589.3047152.6563
Module start 'layout' 0.00470.0041 741.960939.5078
Module start 'content' 0.00880.4244 781.4688532.5547
Module end 'content' 0.43320.0014 1,314.023412.3984
Script end 0.4346  1,326.4219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.6692160.0002
Check MTime0.00120.2854160.0001
Mysql Total
Database connection0.00050.121510.0005
Mysqli_queries0.388889.4553560.0069
Looping result0.00050.1250540.0000
Template Total0.404093.020.2020
Template load0.00190.426120.0009
Template processing0.402192.525520.2011
Template load and register function0.00020.049910.0002
states
state_id_array0.00120.276810.0012
state_identifier_array0.00120.266020.0006
Override
Cache load0.00150.3445300.0000
Sytem overhead
Fetch class attribute can translate value0.00060.140120.0003
Fetch class attribute name0.00110.259130.0004
XML
Image XML parsing0.00070.168220.0004
class_abstraction
Instantiating content class attribute0.00000.002030.0000
General
dbfile0.00150.3528170.0001
String conversion0.00000.002040.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs