Skip to main content
Inspiring
June 11, 2010
Answered

CFSEARCH - VERITY PROBLEM

  • June 11, 2010
  • 3 replies
  • 1537 views

I get a 500 server error when doing a verity search...

All works well in CF5 - but not with CF8...

I am not sure what is up - but seems to be a custom tag issue...

Code below...

Verity Collection

---------------------

       <CFINDEX
           COLLECTION="allindex"
           ACTION="Update"
           TYPE="Custom"
           Custom1="category"
     Custom2="sitename"
           KEY="url"
     BODY="keywords, descript, sitename, category, subcat1, subcat2, url"
           TITLE="sitename"
           QUERY="medexplorersearch">
-------------------------

Search Coding... (I do know the customs are different - works fine in CF5)

-------------------------

<CFSEARCH NAME="search"
        COLLECTION="allindex"
        TYPE="Custom"
  custom1="subcat1"
  custom2="descript"
        CRITERIA="#term#">


<table border=0 cellspacing=0 cellpadding=5>

<cfoutput query=search>
<tr>
<td valign=top class=verd9>
<b><a href="#key#" title="#custom2#">#search.title#</a></b>
<cfif len(custom2)><br><span class=verd8>#left(custom2, 150)#<cfif len(custom2) gt 150>...</cfif></span></cfif>
<br><span class=verd7>#key#</span>
</td></tr>
</CFOUTPUT>
</table> 

-------------------------

    This topic has been closed for replies.
    Correct answer Adam Cameron.

    Custom1 thru 4 shows in the cfsearch reults fields...


    Custom1 thru 4 shows in the cfsearch reults fields...

    Sure.  I didn't say CF doesn't support customN fields, I said it doesn't (never has?) supported them as attributes of <cfsearch>.

    One can filter a search on customN fields, but not the way you are trying to.

    CF5:

    http://www.adobe.com/livedocs/coldfusion/5.0/Developing_ColdFusion_Applications/indexSearch7.htm#1096786

    CF8:

    http://livedocs.adobe.com/coldfusion/8/htmldocs/indexSearch02_8.html

    By the by, if you're in the process of upgrading, consider upgrading to CF9 and to Solr instead.  Verity is dead technology, and has been for a few years now.

    --

    Adam

    3 replies

    Inspiring
    July 14, 2010

    Thanx Adam - removed the Custom call out of the CFSEARCH code...

    Reviewed the Verity stuff... Which allows the Custom calls...

    Recoded to tweak to CF8 - works fine...

    Now my custom tag problem... another matter...

    Thanx,

    Marlin

    Inspiring
    June 13, 2010

    Hang on... this 500 error... does it come with the rather informative error message "Attribute validation error for the Search tag"? Because it does for me (running your code).  And, this is reasonable given custom1 & custom2 are not valid attributes for <cfsearch>.  Not in CF8... not in CF5 either.  Get rid.

    CF8:

    http://livedocs.adobe.com/coldfusion/8/htmldocs/Tags_r-s_13.html

    CF5:

    http://livedocs.adobe.com/coldfusion/5.0/CFML_Reference/Tags90.htm#1103106

    --

    Adam

    Inspiring
    June 13, 2010

    Yes it relates that error...

    Odd thing is - it works fine in CF5...

    Inspiring
    June 13, 2010

    Custom1 thru 4 shows in the cfsearch reults fields...

    Inspiring
    June 12, 2010

    Is the search service running?

    --

    Adam

    Inspiring
    June 12, 2010

    As far as I know...


    Don't see those settings in CF8

    Verity Collections are all set up...
    Inspiring
    June 13, 2010

    You won't see the service in CF8, you'll see it in Windows Services Manager (or *nix equivalent thereof).

    However if you can see the collections in CFAdmin, that means it's running.

    Is it only your existing collections that you cannot index or search, or can you not create new collections & index them?  Can you index the existing ones via the CFAdmin UI?

    Anything in the CF, JRun or Verity logs..?

    --

    Adam


    Actually, are you just trying to use collections created with CF5 on the CF8 server?  I wouldn't expect that to work (I have no basis for saying that, it just seems unlikely).  I'd blow them away and recreate.  You might have already done this, obviously.

    --

    Adam