> 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.

What happens if you run the purge in a separate request, before
running the index operations? I wouldn't be surprised if there's some
concurrency issue running them all in the same request, even though
you'd think they just run sequentially.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:337302
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to