OccasionalCoder
Technical User
This is the first time I've tried setting up the Verity Search Engine.
Here's my code for indexing:
------------------
<cfquery name="content" datasource="#db#" username="#un#" password="#pw#">
select
content_id, page_title, content
from
content
</cfquery>
<cflock name="consortiumres" timeout="120">
<cfindex collection="consortiumres"
action="refresh"
type="custom"
body="page_title,content"
key="content_id"
title="page_title"
Query="content"
>
</cflock>
----------------
and here's code for my test search page:
----------------
<cflock name="consortiumres" type="readonly" timeout="120">
<cfsearch name="results"
collection="consortiumres"
title="page_title"
key="content_ie"
type="simple"
criteria="consortium"
>
</cflock>
<table border="0" cellpadding="3" width="100%">
<tr>
<td>score</td>
<td>Page</td>
</tr>
<cfoutput query="results">
<tr>
<td>#score#</td>
<td><strong>#page_title#</strong><br>#summary#</td>
</tr></cfoutput>
</table>
-----------------
When I execute the searchpage, it get a "Variable Page_title is undefined" error. I'm confused, because I did define Page_title in the index and in the search code.
Your help is greatly appreciated
Here's my code for indexing:
------------------
<cfquery name="content" datasource="#db#" username="#un#" password="#pw#">
select
content_id, page_title, content
from
content
</cfquery>
<cflock name="consortiumres" timeout="120">
<cfindex collection="consortiumres"
action="refresh"
type="custom"
body="page_title,content"
key="content_id"
title="page_title"
Query="content"
>
</cflock>
----------------
and here's code for my test search page:
----------------
<cflock name="consortiumres" type="readonly" timeout="120">
<cfsearch name="results"
collection="consortiumres"
title="page_title"
key="content_ie"
type="simple"
criteria="consortium"
>
</cflock>
<table border="0" cellpadding="3" width="100%">
<tr>
<td>score</td>
<td>Page</td>
</tr>
<cfoutput query="results">
<tr>
<td>#score#</td>
<td><strong>#page_title#</strong><br>#summary#</td>
</tr></cfoutput>
</table>
-----------------
When I execute the searchpage, it get a "Variable Page_title is undefined" error. I'm confused, because I did define Page_title in the index and in the search code.
Your help is greatly appreciated