Hi, Why is this a problem? Maybe you misunderstood. You can add several NumericField instances with same name! Something like:
for (double d : array) { document.add(new DoubleField("myfield", d, Field.Store.YES/NO)); } Uwe ----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -----Original Message----- > From: ASKozitsin [mailto:askozit...@gmail.com] > Sent: Monday, October 10, 2016 1:48 PM > To: java-user@lucene.apache.org > Subject: RE: Array as Lucene Field > > Thanks for quick response! > > Several NumericFields is a bit complicated, because I do not know how many > values might be in array. > > > > -- > View this message in context: http://lucene.472066.n3.nabble.com/Array-as- > Lucene-Field-tp4300445p4300451.html > Sent from the Lucene - Java Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org