Skip Menu |

This queue is for tickets about the Lucene CPAN distribution.

Report information
The Basics
Id: 34993
Status: new
Priority: 0/
Queue: Lucene

People
Owner: Nobody in particular
Requestors: DEEPFRYED [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.18
Fixed in: (no value)



Subject: RAMDirectory does not accept file path as argument in constructor
Hi, RAMDirectory.xs does not implement the file/path argument to allow reading a FSDirectory into memory. Please see attached patch which seems to work. Cheers,
Subject: ramdir_patch.diff
2c2 < new(CLASS) --- > new(CLASS, path) 3a4 > const char* path; 5c6,11 < RETVAL = new RAMDirectory(); --- > if (path && strlen(path)) { > RETVAL = new RAMDirectory(path); > } > else { > RETVAL = new RAMDirectory(); > } 24d29 <