lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicola Buso <>
Subject Lucene 5 field indexed
Date Wed, 03 Jun 2015 12:44:19 GMT
Hi guys,

just few notes about recent API changes about IndexOptions.NONE and

As a API user do you really think that:

if (fieldInfo.getIndexOptions() != IndexOptions.NONE) { ... }

is better than?

if (fieldInfo.isIndexed()) { ... }

I understand the redundancy in the code, but the API should be as user
friendly as possible :-)

Can you also confirm that the correct expression to check if the field
is indexed is as above and not check != null as proposed initially in
the ticket?

Other thing is this incongruity:



What about to use the same naming conventions?


Nicola Buso <>

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message