tracker issue : CF-3041938

select a category, or use search below
(searches all categories and all time range)
Title:

Bug 83935:(Watson Migration Closure)I think there should me an option action="merge" for CFINDEX

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Travis Walters / Travis Walters (Travis Walters)

Created: 08/24/2010

Components: Text Search, Solr

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 / 275970

Priority/Frequency: Normal / Unknown

Locale/System: English / Platforms All

Vote Count: 2

Problem:

I think there should me an option action="merge" for CFINDEX. This could allow two collections to be merged into one.http://wiki.apache.org/solr/MergingSolrIndexeshttp://localhost:8983/solr/admin/cores?action=mergeindexes&core=core0&indexDir=/opt/solr/core1/data/index&indexDir=/opt/solr/core2/data/index
Method:

<cflock type="EXCLUSIVE" name="merge" timeout="120">
            <cfif collectionexists("merge1")>
                <cfindex action="purge" collection="merge1">
            <cfelse>
                <cfcollection action="CREATE" collection="merge1" path="#solrdirectory#">
            </cfif>
           <cfif collectionexists("merge2")>
                <cfindex action="purge" collection="merge2">
            <cfelse>
                <cfcollection action="CREATE" collection="merge2" path="#solrdirectory#">
            </cfif>
           <cfif collectionexists("newmergecollection")>
                <cfindex action="purge" collection="newmergecollection">
            <cfelse>
                <cfcollection action="CREATE" collection="newmergecollection" path="#solrdirectory#">
            </cfif>

        
            
	<cfindex collection="merge1" type="file" action="refresh" key="#datadir#/text/text1.txt" status="s" >
            <cfset sleep(500)>


	<cfindex collection="merge2" type="file" action="refresh" key="#datadir#/text/text1.htm" status="s" >
            <cfset sleep(500)>

        <cfindex action="merge" collection="newmergecollection" collectionnames="merge1,merge2" extentions=".txt,.htm,.html">
   <cfset sleep(1500)>
</cflock>

	<cfsearch collection="newmergecollection" criteria="" name="a" status="stat">
	<cfdump var="#a#">
	<cfdump var="#stat#">


Result:

This is another enhancement suggestion for CFINDEX.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3041938

External Customer Info:
External Company:  
External Customer Name: Travis Walters
External Customer Email: 163148AE447DEBE799201549
External Test Config: 08/24/2010

Attachments:

Comments: