Title: 
  OrmSearch does not include result score + entity for queries generating a single result
| View in TrackerStatus/Resolution/Reason: Closed/Withdrawn/CannotReproduce
Reporter/Name(from Bugbase): Lewis Stewart / Lewis Stewart (Lewis Stewart)
Created: 09/28/2012
Components: ORM Support
Versions: 10.0
Failure Type:
Found In Build/Fixed In Build: Final /
Priority/Frequency: Major / All users will encounter
Locale/System: English / Linux All
Vote Count: 0
Problem Description:
When an OrmSearch() query returns a single result, that result is not included in the "data" array of the result object.
Steps to Reproduce:
Execute an OrmSearch which returns a single result (for example you could make the entity pk indexable + untokenized, and search for that, though any single result query has the same outcome).
  var results = OrmSearch( "id:1234", "TestEntity" );
  writedump( results );
  struct
      DATA    array [empty]
      MaxTotalCount    1
I have confirmed using other tools that the Lucene query returns a single result against the indices built using OrmIndex().
Actual Result:
    results.maxTotalCount is 1, but results.data is an empty array
Expected Result:
    results.maxTotalCount is 1, and results.data is an array with a single entry representing that result (score,entity).
Any Workarounds:
    no workaround found
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID:	3338790
External Customer Info:
External Company:  
External Customer Name: uncalc
External Customer Email:  
External Test Config: My Hardware and Environment details:
Server Product	 ColdFusion
Version	 ColdFusion 10,282462
Edition	 Enterprise (Trial)  
Operating System	 UNIX  
OS Version	 2.6.32-279.1.1.el6.x86_64  
Update Level	 /opt/coldfusion10/cfusion/lib/updates/chf10000002.jar  
Adobe Driver Version	 4.1 (Build 0001)
  Attachments:
Comments: