[pylucene-dev] Bool Type -- Indexing und Query
Andi Vajda
vajda at osafoundation.org
Wed Jan 3 09:27:49 PST 2007
On Wed, 3 Jan 2007, Christian Klinger wrote:
> I think a easy Question, but i don´t get it.
> Is it possible to store a boolean Type in an Index? (True, False)
Apparently not as such:
http://lucene.apache.org/java/docs/api/org/apache/lucene/document/Field.html
But you can create a field with the value "True" or "False" instead and test
for that. You could also create a field with a binary value of '\x00' or
'\x01'.
Maybe someone at java-user at lucene.apache.org would have a better idea as your
question is not specific to PyLucene but is a more general Lucene
usage question anyway ?
Andi..
More information about the pylucene-dev
mailing list