No, sorry, I think I'm not using SortField.Type.LONG. I'd give it a try.
Thank you very much.
El 13/12/2016 a las 18:53, Chris Hostetter escribió:
How are you constructing your SortField at query time?
Are you sure you are using SortField.Type.LONG ?
Can you show us some minimally self contained reproducible code
demonstrating your problem? (ie: create an index with 2 docs, then do
a simple serach for both and sort them and show that the order is wrong)
: Date: Tue, 13 Dec 2016 18:30:09 +0100
: From: Jaime <j.par...@estructure.es>
: Reply-To: java-user@lucene.apache.org
: To: java-user@lucene.apache.org
: Subject: Problem sorting long integers
:
: Hello,
:
: With Lucene 6.1.0, I'm trying to search sorting the results by a long column.
: This is my indexing code:
:
: doc.add(new LongPoint(name, Long.parseLong(value)));
: doc.add(new StoredField(name, value));
: doc.add(new NumericDocValuesField(SORT_FIELD_PREFIX + name,
: Long.parseLong(value)));
:
: SORT_FIELD_PREFIX is a prefix I use for sorting fields.
: My problem is, the sorting is being made modulo 4G (2^32) (and interpreted as
: signed values).
: So, first values are 2G, 4G, 6G, 8G, etc. Then would come 2G +1, 4G +1, 6G +1
: and so on.
: (I.e. only the 4 least significant bytes are taken into account).
:
: Is this a bug, or there is some problem with my code?
:
: Best Regards.
:
: ---------------------------------------------------------------------
: To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
: For additional commands, e-mail: java-user-h...@lucene.apache.org
:
:
-Hoss
http://www.lucidworks.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org
--
Jaime Pardos
ESTRUCTURE MEDIA SYSTEMS, S.L.
Avda. de Madrid nº 120 nave 10, 28500, Arganda del Rey, MADRID,
j.par...@estructure.es
910088429
AVISO LEGAL: Este mensaje y sus archivos adjuntos van dirigidos exclusivamente a su destinatario, pudiendo contener información confidencial sometida a secreto confidencial. No está permitida su reproducción o distribución sin la autorización expresa de ESTRUCTURE MEDIA SYSTEMS, S.L.. Si usted no es el destinatario final por favor elimínelo e infórmenos por esta vía. De acuerdo con lo establecido en la Ley Orgánica 15/1999, de 13 de diciembre, de Protección de Datos de Carácter Personal (LOPD), le informamos que sus datos están incorporados en un fichero del que es titular ESTRUCTURE MEDIA SYSTEMS, S.L. con la finalidad de realizar la gestión administrativa, contable, y fiscal, así como enviarle comunicaciones comerciales sobre nuestros productos y/o servicios. Asimismo, le informamos de la posibilidad de ejercer los derechos de acceso, rectificación, cancelación y oposición de sus datos en el domicilio de ESTRUCTURE MEDIA SYSTEMS, S.L., sito en Avda. de Madrid nº 120 nave 10, 28500, Arganda del Rey, MADRID, o a la dirección de correo electrónico i...@estructure.es.
This message and its attachments are intended solely for the addressee and may contain confidential information submitted to confidential secret. It is not allowed its reproduction or distribution without the express permission of ESTRUCTURE MEDIA SYSTEMS, S.L. .. If you are not the intended recipient please delete it and inform us in this way. According to the provisions of Law 15/1999, of December 13, Protection of Personal Data (LOPD), we inform you that your data is incorporated into a file which is owned by ESTRUCTURE MEDIA SYSTEMS, S.L. in order to perform administrative, accounting and fiscal management, as well as send you communications about our products and / or services. Also we advised of the possibility of exercising rights of access, rectification, cancellation and opposition of their data at the home of ESTRUCTURE MEDIA SYSTEMS, SL, located in Avda. De Madrid # 120 ship 10 28500, Arganda del Rey, Madrid , or email address i...@estructure.es.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org