Hey Charlie,
To begin with the Solr Admin tool which enabled me to query our "Resumes" collection was very helpful.
It produced accurate results in every test instance. Thus, it appears our collection is "good".
It took awhile, but I believe I have uncovered the source of the problem.
Once again, it would appear that using "hidden" Input Types are creating a problem.
I used an output tag as indicated in the code below in the page that starts the search and also in the page that does the Solar search AND displays the results at the conclusion of the search (see the code between the asterisks below).
The keyword criteria at the start of the search was precisely what I input on the web page. However, if I used the double quote symbol which is required by Solr. The output for the keyword criteria was blank and the search returned whacked results.
It appears that using the "hidden" Input Type automatically inserts the double quotes around the entire string. Because just entering a single keyword without double quotes would produce an accurate result and the output tag would accurately display the keyword used at the conclusion of the search.
*****************************************
<INPUT TYPE="hidden" NAME="keywords" VALUE="#Form.keywords#">
<CENTER> <output> Key Words: #Form.keywords# </output> </CENTER>
*****************************************
The other 24 "hidden" form values appear to work as they should. As long as I do not use a keyword entry, searches produce accurate results as they only involve db queries.
So .... can someone please suggest another method of passing keyword strings through a variable in a form in the background to use in a Solr collection search, please? Thanks!
Well, my theory about the double quotes being automatically applied in the form code appears to be correct.
I solved it by stripping the double quotes out of the field before repopulating the field with solr style keyword strings to include the required double quotes on each side of each keyword element.
Thus, for example, instead of ""medical device" AND "orthopedic"", the system was processing "medical device" AND "orthopedic" and it started producing results that mirrored those on the production machine. There is one remaining wrinkle. The results were correct as long as I chose a search that limited it to database defined Job Types. When I had it process ALL candidates in the database, the results were still far greater than they should have be. But that problem is another matter which I'll need to tackle next.
I suppose it is all about "eating the elephant one bite at a time"! 😉
*************************************
<INPUT TYPE="hidden" NAME="keywords" VALUE="#Replace( Form.keywords, '"', '', 'ALL' )#">
<INPUT TYPE="hidden" NAME="keywords" VALUE="#Form.keywords#">
<CENTER> <output> Key Words: #Form.keywords# </output> </CENTER>