Re: Field.java -> STORED, NOT_STORED, etc...

2004-07-11 Thread Tatu Saloranta
On Sunday 11 July 2004 10:03, Doug Cutting wrote: > Doug Cutting wrote: > > The calls would look like: > > > > new Field("name", "value", Stored.YES, Indexed.NO, Tokenized.YES); > > . > Actually, while we're at it, Indexed and Tokenized are confounded. A > single entry would be better, something l

Re: Field.java -> STORED, NOT_STORED, etc...

2004-07-11 Thread Doug Cutting
Doug Cutting wrote: The calls would look like: new Field("name", "value", Stored.YES, Indexed.NO, Tokenized.YES); Stored could be implemented as the nested class: public final class Stored { private Stored() {} public static final Stored YES = new Stored(); public static final Stored NO = new

Re: Field.java -> STORED, NOT_STORED, etc...

2004-07-11 Thread Doug Cutting
Kevin A. Burton wrote: So I added a few constants to my class: new Field( "name", "value", NOT_STORED, INDEXED, NOT_TOKENIZED ); which IMO is a lot easier to maintain. Why not add these constants to Field.java: public static final boolean STORED = true; public static final boolean NOT_STORED

Re: Why is Field.java final?

2004-07-11 Thread Doug Cutting
Kevin A. Burton wrote: I was going to create a new IDField class which just calls super( name, value, false, true, false) but noticed I was prevented because Field.java is final? You don't need to subclass to do this, just a static method somewhere. Why is this? I can't see any harm in making it

Is it possible to delete a term?

2004-07-11 Thread clibois
Hello, I am still working on my categorizing tools and I am implementing a dimensional reduction. I would like to reduce my index to a subset of his terms. So i was asking me if it's possible to delete not a document but a term? Maybe is there any other solution to reduce my number of terms? What

How to get all the values of a field in all the index

2004-07-11 Thread clibois
Hello, I have indexed a database which contains a field category. I would like to get an enumeration of all the category of the index. So for that i need to get all possible different value of this field inside the index. For the moment I use the terms() method,check if for each term if it's a

Re: Why is Field.java final?

2004-07-11 Thread Kevin A. Burton
John Wang wrote: I was running into the similar problems with Lucene classes being final. In my case the Token class. I sent out an email but no one responeded :( final is often abused... as is private. anyway... maybe we can submit a patch :) Kevin -- Please reply using PGP. http://peerfear.

Field.java -> STORED, NOT_STORED, etc...

2004-07-11 Thread Kevin A. Burton
I've been working with the Field class doing index conversions between an old index format to my new external content store proposal (thus the email about the 14M convert). Anyway... I find the whole Field.Keyword, Field.Text thing confusing. The main problem is that the constructor to Field j