I've run into a frustrating issue while trying to use Solr search in CF9. I'm 
not sure if the Verity has the same problem, but basically the problem is that 
I have 3 different queries I want to index into a single collection and if I 
purge the collection first, it is refusing to index all three. The records come 
from fairly difference sources, so not easy to combine, I'm using categories to 
mark the record type so my search interface allows the user to select the scope 
they want to search in. The code basically looks like this:

<cfindex collection="#variables.collection#" action="purge">

.... Code to Retrieve the 3 different document types to index ....

<!--- add documents to collection --->
<cfindex collection="#variables.collection#" action="update" body="doc_text" 
category="doc_type_code" custom1="id" key="key" query="local.qryDocs1" />
<cfindex collection="#variables.collection#" action="update" body="doc_text" 
category="doc_type_code" custom1="id" key="key" query="local.qryDocs2" />
<cfindex collection="#variables.collection#" action="update" 
body="doc_text1,doc_text2,doc_text3" category="doc_type_code" custom1="id" 
key="key" query="local.qryDocs3" />
                        
Depending on the order that I run the cfindex tags, I only get one or two of 
the queries being indexed, never all three. If however, I *don't* run a purge 
first, they always get indexed properly. 

The keys in each of these queries is unique from all the others, so I know 
that's not the problem. It's not a major problem that I don't run a purge, 
since these records pretty much never change (at least in terms of being 
removed....I generally only have new ones, or changes to existing ones) but 
just not thrilled at having to leave it out, when it *should* work with it in 
there.

Any ideas? Anyone seen anything similar? 


--- Mary Jo


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336972
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to