Hi Magnolians,

I have a file "fairytales.pdf" stored in the Assets app / dam workspace under a 
folder /Documents. The full text of the pdf contains a specific string 
"Gretel". I am using the Magnolia factory jackrabbit indexing configuration. In 
a template, I search content with searchfn as follows:

[code][#assign gretelResults = searchfn.searchContent("dam", "gretel", 
"/Documents", "mgnl:asset") /]
 
[#if gretelResults?has_content]
    [#list gretelResults as item]
            [#assign myAsset = damfn.getAsset("jcr", 
cmsfn.asJCRNode(item).getPath())!]
            ${myAsset!"problem"}
    [/#list]
[#else]
    nothing found
[/#if][/code]

Sadly, I don't get any hits here.

Using Luke, I checked the lucene index in the dam repository. It is healthy and 
contains the fulltext of the pdf document. Via Luke, I can query and get a 
matching result.

What am I doing wrong? 

Kind regards,

Dominik

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=29180454-714e-4493-8783-245b193fd811


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <user-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to