Copy link to clipboard
Copied
I am tying to keep an already developed search running. I have no experience. Please help!
My error is coming from here:
<cfif trim(form.criteria) is not ""> |
<cfset collectionname="#form.p_collname#">
<cfsearch
collection="personify_methods"
name="getMethods"
criteria="#Form.Criteria#"
maxrows = "100">
Could some one please assist me?
Copy link to clipboard
Copied
What is the error you are getting?
You are missing a closing </cfif> tag but that might be because you have copied and pasted incomplete code.
Copy link to clipboard
Copied
The </cfif> tag is later in the code.
The complete search is allowing you to search by keywords or product code.
The keyword area is the problem area.
Copy link to clipboard
Copied
Are you getting an error? Without more info it will be difficult to offer much assistance.
Copy link to clipboard
Copied
There was a problem executing the cfSearch tag with the following collections.
Collection (status code): personify_methods (-33)
The error occurred in /search_methods_results.cfm: line 34
Called from /search_methods_results.cfm: line 28
Called from /search_methods_results.cfm: line 1
32 : name="getMethods"
33 : criteria="#Form.Criteria#"
34 : maxrows = "100"><!--- --->
35 :
36 : <cfoutput>
Copy link to clipboard
Copied
What is being passed through in #Form.Criteria#?
Is this a verity or solr collection?
Have you tried re-indexing the collection?
Copy link to clipboard
Copied
haxtbh,
The last question you asked might have just answered my problem. The problem is coming from the data source.
THANK YOU!
Copy link to clipboard
Copied
Amie_67, please mark the correct answer, as it will help someone else. Thanks.