solr query output format Issue
Greetings all.
OK. I have searches against a collection generated by a script containing about a dozen sql/server datafields running fine in one of our modules used to search jobs.
However, I have a collection which was created against 60,000+ resumes utilizing the "Add New Solr Collection" option in the CF Administrator which is giving me trouble.
Basically, the collection was generated against a directory of numbered files 1 - 60000+ with .doc .docx .txt & .pdf extensions. (e.g 1234.doc).
The error I am getting is:
**********************************
[Macromedia][SQLServer JDBC Driver][SQLServer]There are more columns in the INSERT statement than values specified in the VALUES clause. The number of values in the VALUES clause must match the number of columns specified in the INSERT statement.
******************************
The line involved is #47 as shown in the code below.
Here is the code I am using to try & utilize the output generated by a keyword search against the collection:
**********************************
<CFSEARCH NAME="applicants_#var#"
COLLECTION="#solrCollection_Resumes#"
TYPE="standard"
CRITERIA="#Form.keywords#" >
<!--- generate the list of applicants --->
<cfloop query="applicants_#var#" >
<cfquery datasource="#dsn#">
insert into tblCurrentSearches_apps (currentSearchID, appID)
values (#getCurrentSearchID.theSearchID#) <---- Line 47
</cfquery>
</cfloop>
</cfloop>
<cfquery name="getTotalApps" datasource="#dsn#">
select count(*) as numApps
from tblCurrentSearches_apps
where currentSearchID = #getCurrentSearchID.theSearchID#
</cfquery>
************************************
I presume my problem involves parsing. If so, can someone tell me what the format of the returns to the query would be, so I can get a read on the number of columns in the return.
As always, thanks in advance.
