lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (Created) (JIRA)" <>
Subject [jira] [Created] (LUCENE-3472) add back Document.getValues()
Date Tue, 27 Sep 2011 17:27:47 GMT
add back Document.getValues()

                 Key: LUCENE-3472
             Project: Lucene - Java
          Issue Type: Bug
            Reporter: Robert Muir
             Fix For: 4.0

I'm porting some code to trunk's new Doc/Field apis, and i keep running into this pattern:
String[] values = doc.getValues("field");

But with the new apis, this becomes a little too verbose:

IndexableField[] fields = doc.getFields("field");
String[] values = new String[fields.length];
for (int i = 0; i < values.length; i++) {
  values[i] = fields[i].stringValue();

I think we should probably add back the sugar api (with the same name) ?

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


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

View raw message