
525
DEVELOPING
COLDFUSION 9 APPLICATIONS
Accessing and Using Data
Las
t
upda
te
d 8/5/2010
<cfindex
query = "Calls"
collection = "training"
action = "UPDATE"
type = "CUSTOM"
title = "Short_Description"
key = "Call_ID"
body = "Problem_Description"
custom1 = "Product">
To perform the refined search for H problems with the word certain in the problem description, the
cfsearch
tag uses the CONTAINS operator in its
criteria
attribute:
<cfsearch
collection = "training"
name = "search_calls"
criteria = "certain and CF_CUSTOM1 <CONTAINS> HomeSite">
The following code displays the results of the refined search:
<table border="1" cellspacing="5">
<tr>
<th align="LEFT">KEY</th>
<th align="LEFT">TITLE</th>
<th align="LEFT">CUSTOM1</th>
</tr>
<cfoutput query = "search_calls">
<tr>
<td>#KEY#</td>
<td>#TITLE#</td>
<td>#CUSTOM1#</td>
</tr>
</cfoutput>
</table>
Solr search support
The Solr search service is an open source enterprise search server based on the Lucene Java search library.
Solr search service
Solr is a full-text search engine, based on Lucene, that contains the following features:
•
XML/HTTP Interfaces
•
Loose schema to define types and fields
•
Web Administration Interface
•
Extensive Caching
•
Index Replication
•
Extensible Open Architecture
•
Written in Java5, deployable as a WAR
•
Support for stemming
Содержание COLDFUSION 9
Страница 1: ...Developing Applications ADOBE COLDFUSION 9...