Using Verity Search Expressions - Adobe 38043740 - ColdFusion Standard - Mac Development Manual

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Accessing and Using Data
As with the other query types, provide a unique value for the
attribute.
The following example updates the pop_query collection with the current mail for user1, and searches and returns the
message number and subject line for all messages that contain the word action:
<!--- Run POP query. --->
<cfpop action="getall"
name="p_messages"
server="mail.company.com"
userName="user1"
password="user1">
<!--- Output POP query record set. --->
<cfoutput query="p_messages">
#messagenumber# <br>
#from# <br>
#to# <br>
#subject# <br>
#body# <br>
<hr>
</cfoutput>
<!--- Index record set. --->
<cfindex action="refresh"
collection="pop_query"
key="messagenumber"
type="custom"
title="subject"
query="p_messages"
body="body">
<!--- Search messages for the word "action". --->
<cfsearch collection="pop_query"
name="s_messages"
criteria="action"
maxrows = "100">
<!--- Output search record set. --->
<cfoutput query="s_messages">
#key#, #title# <br>
</cfoutput>

Using Verity Search Expressions

You can use Verity search expressions to refine your searches to yield the most accurate results.
About Verity query types
When you search a Verity collection, you can use a simple, explicit, natural, or Internet query. The following table
compares the query types:
attribute and enter the data fields to index in the
key
Last updated 1/20/2012
505
body

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents