Title:
Bug 83933:(Watson Migration Closure)The SOLR documentation describes a way to give documents a boost in terms of their score value regardless of what the user is searching for
| View in TrackerStatus/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 / 276019
Priority/Frequency: Normal / Unknown
Locale/System: English / Platforms All
Vote Count: 2
Problem:
The SOLR documentation describes a way to give documents a boost in terms of their score value regardless of what the user is searching for.<add> <doc boost="2.5"> <field name="employeeId">05991</field> <field name="office" boost="2.0">Bridgewater</field> </doc></add>Can we have a way to give documents a boost with CFINDEX?
Method:
<cflock type="EXCLUSIVE" name="docboost" timeout="120">
<cfif collectionexists("docboost")>
<cfindex action="purge" collection="docboost">
<cfelse>
<cfcollection action="CREATE" collection="docboost" path="#solrdirectory#">
</cfif>
<!----Indexing a file with custom tag----->
<CFINDEX COLLECTION = "docboost" action="refresh" TYPE = "path" key="#datadir#/text"
status="status1" boost_t="doost">
<cfoutput>#status1.inserted#</cfoutput>
<cfset sleep(500)>
<cfsearch collection="docboost" criteria="test" name="n" >
<cfdump var="#n#">
<!----- Update collection with updated bost factor----->
<CFINDEX COLLECTION = "docboost" action="update" TYPE = "file" key="#datadir#/text/test2.htm" docboost="8"
status="status1" boost_t="doc boost">
<cfset sleep(500)>
<cfsearch collection="docboost" criteria="test" name="n" >
<cfdump var="#n#">
</cflock>
Result:
This is another enhancement suggestion for CFINDEX.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3041937
External Customer Info:
External Company:
External Customer Name: Travis Walters
External Customer Email: 163148AE447DEBE799201549
External Test Config: 08/24/2010
Attachments:
Comments: