Hi, I forgot to mention: Sorting is not possible (at least not in a consistent way), but queries will work.
Uwe ----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: [email protected] > From: Uwe Schindler [mailto:[email protected]] > Sent: Monday, October 10, 2016 1:28 PM > To: [email protected] > Subject: RE: Array as Lucene Field > > Hi, > > You can add multiple values as NumericFields (Lucene 5.x) or PointValues > (Lucene 6+). Just create a separate field instance and all all of them. The > same applies for all field types. > > Uwe > > ----- > Uwe Schindler > H.-H.-Meier-Allee 63, D-28213 Bremen > http://www.thetaphi.de > eMail: [email protected] > > > -----Original Message----- > > From: Alexander Kozitsin [mailto:[email protected]] > > Sent: Monday, October 10, 2016 12:43 PM > > To: [email protected] > > Subject: Array as Lucene Field > > > > Hi everyone! > > > > I've faced a problem and had no idea how to resolve it. > > > > So, I've got a directory with documents. > > Each document might contain array of doubles. However, Lucene does not > > support arrays. > > What I need is to have an ability to sort documents by this field, search > > values (with support of basic operations: >,>=, <, <=, =). > > > > I know, I can create several documents for each value, but then I will have > > an issue with retrieving part of data by ranges (e.g.: I need documents > > from 10 to 20). There will be duplicates and incorrect ranges. > > > > Thanks in advacne for your help! > > > > Alexander > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
