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
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
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
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
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
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
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.
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