I'm indexing a directory of PDF files that our nurses can search on. I use
the contextPassage attribute of cfsearch:
<cfsearch name="search_policies"
collection="policies"
criteria="#form.criteria#"
status="info"
type="explicit"
contextPassages="3"
suggestions="5">
and then output the results using the context attribute:
<cfoutput query="search_policies" startrow="#StartRow_search_policies#"
maxrows="#MaxRows_search_policies#">
<div id="searchResult">
<cfif len(search_policies.title) LTE 3 OR
search_policies.title EQ "">
<a
href="#search_policies.url#">#ListLast(search_policies.key, "\")#</a><br>
<cfelse>
<a
href="#search_policies.url#">#search_policies.title#</a><br>
</cfif>
#search_policies.context#<br>
<a
href="#search_policies.url#"><h4>#search_policies.url#</h4></a><h4> -
#Round(search_policies.size/1024)#k</h4>
</div>
</cfoutput>
Right now, nothing is being generated for the context attribute as I assume
because the STOREBODY option is not being set when I create and index the
collection through the administrator.
Should I just generate the collection through code at this point and set the
STOREBODY attribute to TRUE? Is that how it is set?
On Tue, Jan 27, 2009 at 10:59 AM, Matthew Woodward <[email protected]>wrote:
> Anthony Hixon, Jr. wrote:
>
>> I saw the "Store Document Body" option for creating new collections in the
>> administrator console. For some reason, when I choose to enable it the
>> collection is still set to no after I create it.
>>
>
> I can look into the admin side of things. Can you explain exactly what
> you're doing so I can reproduce it?
>
> --
> Matt Woodward
> [email protected]
> http://www.mattwoodward.com/blog
>
> Please do not send me proprietary file formats such as Word, PowerPoint,
> etc. as attachments.
> http://www.gnu.org/philosophy/no-word-attachments.html
>
>
--
Anthony Hixon, Jr.
Certified Advanced ColdFusion MX 7 Developer
Mobile: (706) 639-3617
[email protected]
--~--~---------~--~----~------------~-------~--~----~
Open BlueDragon Public Mailing List
http://groups.google.com/group/openbd?hl=en
official site @ http://www.openbluedragon.org/
!! save a network - trim replies before posting !!
-~----------~----~----~----~------~----~------~--~---