Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

CFSEARCH - VERITY PROBLEM

Participant ,
Jun 11, 2010 Jun 11, 2010

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> 

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

1.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Jun 13, 2010 Jun 13, 2010

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 up

...
Translate
LEGEND ,
Jun 12, 2010 Jun 12, 2010

Is the search service running?

--

Adam

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jun 12, 2010 Jun 12, 2010

As far as I know...


Don't see those settings in CF8

Verity Collections are all set up...
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 12, 2010 Jun 12, 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 12, 2010 Jun 12, 2010

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jun 12, 2010 Jun 12, 2010

Yeah - I've purged and recreated the collections...

Seems to be a Custom1 issue...

I can't seem to find good verity help in the CF8 pages...

They worked fine in CF5 - had hoped CF8 wouldn't have had a problem with them...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 12, 2010 Jun 12, 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jun 12, 2010 Jun 12, 2010

Yes it relates that error...

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jun 12, 2010 Jun 12, 2010

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 13, 2010 Jun 13, 2010

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 13, 2010 Jun 13, 2010

Yes it relates that error...

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

There's a difference between "something working" and "something not erroring".  I guess CF5 was more forgiving of malformed CFML than CF8 is.

And what's your definition of "working"?  Does passing different values for customN attributes (or not passing the customN attributes at all) actually affect the results?  I suspect not.

--

Adam

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jul 14, 2010 Jul 14, 2010
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources