Highlighted

New and need help

New Here ,
Apr 02, 2015

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?

Views

317

Likes

Translate

Translate

Report

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

New and need help

New Here ,
Apr 02, 2015

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?

Views

318

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Apr 02, 2015 0
Advocate ,
Apr 02, 2015

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 02, 2015 0
New Here ,
Apr 02, 2015

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 02, 2015 0
Engaged ,
Apr 02, 2015

Copy link to clipboard

Copied

Are you getting an error?  Without more info it will be difficult to offer much assistance.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 02, 2015 0
New Here ,
Apr 02, 2015

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>

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 02, 2015 0
Advocate ,
Apr 02, 2015

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?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 02, 2015 0
New Here ,
Apr 02, 2015

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! 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 02, 2015 0
BKBK LATEST
Adobe Community Professional ,
Apr 02, 2015

Copy link to clipboard

Copied

Amie_67, please mark the correct answer, as it will help someone else. Thanks.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 02, 2015 0