[jira] Resolved: (LUCENE-2282) Expose IndexFileNames as public, and make use of its methods in the code

2010-02-26 Thread Michael McCandless (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-2282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael McCandless resolved LUCENE-2282. Resolution: Fixed Thanks Shai! > Expose IndexFileNames as public, and make

[jira] Commented: (LUCENE-2282) Expose IndexFileNames as public, and make use of its methods in the code

2010-02-24 Thread Marvin Humphrey (JIRA)
willing to recompile and regenerate to take advantage of experimental features is a big boon, as it allows us to test drive features before declaring them stable. Designing optimal APIs without usability testing is difficult to impossible. > Expose IndexFileNames as p

[jira] Commented: (LUCENE-2282) Expose IndexFileNames as public, and make use of its methods in the code

2010-02-24 Thread Uwe Schindler (JIRA)
back port to 3.0.2 - it's non-trivial enough that there is some risk? Please no backport to 3.0.2, its an API change. And we are not sure if there will be ever a 3.0.2. BTW: Version 3.0.1 comes out latest on Friday, will appear on the mirrors soon! > Expose IndexFileNames as public, an

[jira] Commented: (LUCENE-2282) Expose IndexFileNames as public, and make use of its methods in the code

2010-02-24 Thread Shai Erera (JIRA)
of FSD fragile (potentially). Thanks for looking at this ! > Expose IndexFileNames as public, and make use of its methods in the code > > > Key: LUCENE-2282 > URL: https://issues.apach

[jira] Commented: (LUCENE-2282) Expose IndexFileNames as public, and make use of its methods in the code

2010-02-24 Thread Michael McCandless (JIRA)
ow takes a Codec as input, to make up for that... but IndexFileNames just has a NOTE at the top stating the limitation. > Expose IndexFileNames as public, and make use of its methods in the code > > >

[jira] Assigned: (LUCENE-2282) Expose IndexFileNames as public, and make use of its methods in the code

2010-02-24 Thread Michael McCandless (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-2282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael McCandless reassigned LUCENE-2282: -- Assignee: Michael McCandless > Expose IndexFileNames as public, and make

[jira] Updated: (LUCENE-2282) Expose IndexFileNames as public, and make use of its methods in the code

2010-02-23 Thread Shai Erera (JIRA)
coding "fdt" and "fdx". It couldn't have done that because IFN was package-private, which shows the problem with it. > Expose IndexFileNames as public, and make use of its methods in the code > -

[jira] Issue Comment Edited: (LUCENE-2282) Expose IndexFileNames as public, and make use of its methods in the code

2010-02-23 Thread Shai Erera (JIRA)
(which is a core Lucene class) and say I want to instantiate it. I need to pass file extensions. How do I pass the .del file as an extension? Do I hard code it to ".del" (or just "del"?) or, or do I put that code in o.a.l.store just for that? Or ... we make IndexFileNames pub

[jira] Commented: (LUCENE-2282) Expose IndexFileNames as public, and make use of its methods in the code

2010-02-23 Thread Shai Erera (JIRA)
nstantiate it. I need to pass file extensions. How do I pass the .del file as an extension? Do I hard code it to ".del" (or just "del"?) or, or do I put that code in o.a.l.store just for that? Or ... we make IndexFileNames publc and I can happily and safely reference it. BTW

[jira] Commented: (LUCENE-2282) Expose IndexFileNames as public, and make use of its methods in the code

2010-02-23 Thread Marvin Humphrey (JIRA)
uot;non-core-Lucene" files when writing a compound file. Maybe there's something I haven't thought of, though. Why do you want to "reference Lucene's file extensions properly"? Once you've identified identified whi

[jira] Updated: (LUCENE-2282) Expose IndexFileNames as public, and make use of its methods in the code

2010-02-23 Thread Shai Erera (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-2282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Shai Erera updated LUCENE-2282: --- Attachment: LUCENE-2282.patch Forgot to tag IFN as @lucene.internal > Expose IndexFileNames

[jira] Commented: (LUCENE-2282) Expose IndexFileNames as public, and make use of its methods in the code

2010-02-23 Thread Shai Erera (JIRA)
om making it public. The class already exists, and declares the right constants and methods. All I want is to expose it as public. This information is not *hidden*, it's out there. We're just making it easier for apps to reference it. Like Mike mentioned on the java-dev thread http://

[jira] Updated: (LUCENE-2282) Expose IndexFileNames as public, and make use of its methods in the code

2010-02-23 Thread Shai Erera (JIRA)
ason and I cannot unlock it), but I see no reasons for them to fail. If this can go out in 3.0.2 instead of waiting for 3.1, then all the better. > Expose IndexFileNames as public, and make use of its methods in the code >

[jira] Commented: (LUCENE-2282) Expose IndexFileNames as public, and make use of its methods in the code

2010-02-23 Thread Marvin Humphrey (JIRA)
only core index files conflicts with the idea of pluggable index formats. Presumably plugins would use their own file extensions. Would these belong to the index, according to a detector based off of IndexFileNames? Presumably not, which would either limit the usefulness of such a utility, or outr

[jira] Created: (LUCENE-2282) Expose IndexFileNames as public, and make use of its methods in the code

2010-02-23 Thread Shai Erera (JIRA)
Expose IndexFileNames as public, and make use of its methods in the code Key: LUCENE-2282 URL: https://issues.apache.org/jira/browse/LUCENE-2282 Project: Lucene - Java

Re: IndexFileNames

2010-02-23 Thread Shai Erera
ok great ! I'll create an issue and work out a patch. Shai On Tue, Feb 23, 2010 at 1:52 PM, Michael McCandless < luc...@mikemccandless.com> wrote: > On Tue, Feb 23, 2010 at 6:46 AM, Shai Erera wrote: > > I don't think performance is the issue here, but rather correctness. > Someone > > cannot

Re: IndexFileNames

2010-02-23 Thread Michael McCandless
On Tue, Feb 23, 2010 at 6:46 AM, Shai Erera wrote: > I don't think performance is the issue here, but rather correctness. Someone > cannot just ask filename.endsWith(DELETION_EXT) as files like "file1del" > would match as well. So whenever you make such check, you need to add ".". > Again, not per

Re: IndexFileNames

2010-02-23 Thread Shai Erera
I don't think performance is the issue here, but rather correctness. Someone cannot just ask filename.endsWith(DELETION_EXT) as files like "file1del" would match as well. So whenever you make such check, you need to add ".". Again, not performance, but correctness. If we make it public, then we ca

Re: IndexFileNames

2010-02-23 Thread Michael McCandless
Well, there are two issues: * We don't always call IFN.segmentFileName -- often we simply concatenate strings directly throughout the sources. * Should the extensions include '.' or not? I'd really like to fix the first issue. If we do that, then there's only 1 place that performs string co

Re: IndexFileNames

2010-02-23 Thread Shai Erera
But segmentFileName performs the concatenation internally: static String segmentFileName(String segmentName, String ext) { return segmentName + "." + ext; } So that would not avoid anything right? And still, if someone needs to know whether a certain file is a core Lucene file or his own a

Re: IndexFileNames

2010-02-23 Thread Michael McCandless
This class makes me somewhat nervous, with the changes coming in flex, because the extensions are no longer static but rather a function of the particular codec you're using in the index. I've changed some of the constants accordingly (on flex). Still, I think it's OK to make it public (flex has

IndexFileNames

2010-02-22 Thread Shai Erera
Hi, I've noticed that IFN is package private, including its constants and methods. Any reason why not make it public? I need to create my own Directory, and would like to query whether a file is 'my file' or Lucene's file. Getting access to the extensions can help. Currently I have to put my code

Re: IndexFileNames

2005-06-09 Thread Doug Cutting
Bernhard Messer wrote: I finished the changes and commited the changes. There are two new classes in package org.apache.lucene.index. org.apache.lucene.index.IndexFileNames contains common lucene related filenames and extensions, the scope of the class itself and it's members are package. org.

Re: IndexFileNames

2005-06-09 Thread Bernhard Messer
Doug Cutting wrote: Bernhard Messer wrote: sorry for the confusion. On the first look, i thought the new class IndexFileNames, containing the necessary constant values, fits perfect into org.apache.lucene.index. After a more detailed look, i get the feeling that it would be much better to

Re: IndexFileNames

2005-06-07 Thread Doug Cutting
Bernhard Messer wrote: sorry for the confusion. On the first look, i thought the new class IndexFileNames, containing the necessary constant values, fits perfect into org.apache.lucene.index. After a more detailed look, i get the feeling that it would be much better to place the new class into

Re: IndexFileNames

2005-06-07 Thread Bernhard Messer
LuceneFileFilter, Constants.INDEX_* and IndexReader.FILENAME_EXTENSIONS, should all be moved to a common home in the index package, like org.apache.lucene.index.IndexFileNames. Thoughts? sorry for the confusion. On the first look, i thought the new class IndexFileNames, containing the neces

Re: IndexFileNames

2005-06-06 Thread Bernhard Messer
Doug Cutting wrote: [EMAIL PROTECTED] wrote: --- lucene/java/trunk/src/java/org/apache/lucene/store/FSDirectory.java (original) +++ lucene/java/trunk/src/java/org/apache/lucene/store/FSDirectory.java Mon Jun 6 10:52:12 2005 @@ -52,8 +52,8 @@ if (name.endsWith("."+IndexReader.FILE

IndexFileNames

2005-06-06 Thread Doug Cutting
[EMAIL PROTECTED] wrote: --- lucene/java/trunk/src/java/org/apache/lucene/store/FSDirectory.java (original) +++ lucene/java/trunk/src/java/org/apache/lucene/store/FSDirectory.java Mon Jun 6 10:52:12 2005 @@ -52,8 +52,8 @@ if (name.endsWith("."+IndexReader.FILENAME_EXTENSIONS[i]))