Issue Details (XML | Word | Printable)

Key: LUCENE-1015
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Grant Ingersoll
Reporter: Grant Ingersoll
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Lucene - Java

FieldCache should support longs and doubles

Created: 02/Oct/07 01:01 PM   Updated: 03/Dec/07 05:14 PM
Return to search
Component/s: Search
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works LUCENE-1015.patch 2007-10-29 04:13 PM Grant Ingersoll 24 kB
Text File Licensed for inclusion in ASF works LUCENE-1015.patch 2007-10-22 07:46 PM Grant Ingersoll 15 kB
Issue Links:
Blocker
 
Reference
 

Resolution Date: 31/Oct/07 01:29 AM


 Description  « Hide
Would be nice if FieldCache supported longs and doubles

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Grant Ingersoll added a comment - 02/Oct/07 01:05 PM
Of course, since FieldCache is an interface, we need to think about back-compatibility...

Grant Ingersoll added a comment - 22/Oct/07 07:46 PM
First draft at a patch to add long and double FieldCache support by extending the FieldCache interface (can't just add b/c of back-compatibility reasons). Adds support in the SortField and the two HItQueue's. Still needs to be more thoroughly tested, but wanted to get comments first.

Mark Miller added a comment - 22/Oct/07 07:58 PM
Finishing up LUCENE-831 would seem like a good way to add this as well – while also getting the juicy benefits of 831 combined with 743. Of course, this only applies if someone where to finish 831 and it where accepted...

Grant Ingersoll added a comment - 25/Oct/07 01:56 PM - edited
I am going to commit this sometime tomorrow unless there are objections. It doesn't sound like anyone is stepping up on 831 at the moment, so they can refactor as necessary.

Will also add in the necessary testing.


Brian Pinkerton added a comment - 28/Oct/07 05:29 AM
While you're at it, would you mind adding shorts as well? When you have a lot of docs in a collection the space savings realized by using shorts instead of ints can make a real difference in the number of docs supportable on a given hardware platform.

Grant Ingersoll added a comment - 28/Oct/07 01:23 PM
Good idea, will do.

Grant Ingersoll added a comment - 29/Oct/07 01:17 PM
Actually, the FieldCache already supports byte and shorts.

Grant Ingersoll added a comment - 29/Oct/07 04:13 PM
Added tests, fixed some documentation bugs.

Will commit tonight or tomorrow


Grant Ingersoll added a comment - 31/Oct/07 01:29 AM
Committed.