Seth Utecht
2018-09-18 11:00:18 UTC
Hi!
New lucene user here, so my apologies if this turns out to be something
silly or obvious.
I'm working on some legacy code that we've inherited; currently we're in
the process of moving from Lucene3 to Lucene7.
My concern is that it seems like LongPoint's FieldType has an IndexOptions
that is always NONE. It strikes me as odd, because we are in fact indexing
and searching against these LongPoint fields.
Our specific case is the following if-block:
if (field.fieldType().indexOptions() != IndexOptions.NONE) {
//do some stuff
}
Within it, LongPoints never evaluate to true, although the StringFields we
were using before did without any problem.
I'm not sure what I'm missing, and any help would be appreciated.
Thanks!
Seth
New lucene user here, so my apologies if this turns out to be something
silly or obvious.
I'm working on some legacy code that we've inherited; currently we're in
the process of moving from Lucene3 to Lucene7.
My concern is that it seems like LongPoint's FieldType has an IndexOptions
that is always NONE. It strikes me as odd, because we are in fact indexing
and searching against these LongPoint fields.
Our specific case is the following if-block:
if (field.fieldType().indexOptions() != IndexOptions.NONE) {
//do some stuff
}
Within it, LongPoints never evaluate to true, although the StringFields we
were using before did without any problem.
I'm not sure what I'm missing, and any help would be appreciated.
Thanks!
Seth