lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Wechner <michael.wech...@wyona.com>
Subject method for getting the field type
Date Sat, 08 May 2004 23:50:09 GMT
I think it would make sense to have a method

String getType() for  (or maybe additional short getType())

http://jakarta.apache.org/lucene/docs/api/org/apache/lucene/document/Field.html

which would return something like

Text, UnIndexed, etc.

or am I overlooking something?

I have seen that toString() is delivering the type as part of the return 
value,
but I think it would make sense to get this information without string 
manipulation.

WDYT?

btw, the Javadoc of isTermVectorStored() has a typo: available instead 
avaliable, but maybe this has been fixed within the CVS already.

Thanks

Michi

-- 
Michael Wechner
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com              http://cocoon.apache.org/lenya/
michael.wechner@wyona.com                        michi@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message