Hi all, anyone know if _xlink field in the index is used ?
https://github.com/geonetwork/core-geonetwork/blob/develop/core/src/main/java/org/fao/geonet/kernel/DataManager.java#L507
When too many xlinks are defined in the record, indexing fails with
Error: Document contains at least one immense term in field=“_xlink” (whose UTF8 encoding is longer than the max length 32766), all of which were skipped. Please correct the analyzer to not produce such terms. The prefix of the first immense term is: ‘[32, 104, 116, 116, 112, 58, 47, 47, 99, 97, 116, 97, 108, 111, 103, 117, 101, 46, 102, 111, 114, 109, 97, 116, 105, 111, 110, 46, 115, 105]…’, original message: bytes can be at most 32766 in length; got 141611
It may be useful to check which records use a subtemplate. But I can’t find something like this.
Thanks.
Francois
Hi Francois
I’ve never used that field.
What stores that field? The ids of the the subtemplates used?
Regards,
Jose García
···
On Wed, Oct 28, 2015 at 5:11 PM, Francois Prunayre <fx.prunayre@anonymised.com> wrote:
Hi all, anyone know if _xlink field in the index is used ?
https://github.com/geonetwork/core-geonetwork/blob/develop/core/src/main/java/org/fao/geonet/kernel/DataManager.java#L507
When too many xlinks are defined in the record, indexing fails with
Error: Document contains at least one immense term in field=“_xlink” (whose UTF8 encoding is longer than the max length 32766), all of which were skipped. Please correct the analyzer to not produce such terms. The prefix of the first immense term is: ‘[32, 104, 116, 116, 112, 58, 47, 47, 99, 97, 116, 97, 108, 111, 103, 117, 101, 46, 102, 111, 114, 109, 97, 116, 105, 111, 110, 46, 115, 105]…’, original message: bytes can be at most 32766 in length; got 141611
It may be useful to check which records use a subtemplate. But I can’t find something like this.
Thanks.
Francois
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
–
Vriendelijke groeten / Kind regards,
Jose García
Veenderweg 13
6721 WD Bennekom
The Netherlands
T: +31 (0)318 416664
Please consider the environment before printing this email.
2015-10-28 17:13 GMT+01:00 Jose Garcia <jose.garcia@anonymised.com>:
Hi Francois
I've never used that field.
What stores that field? The ids of the the subtemplates used?
The list of xlink of the record. So it could be quite long URLs and at some
point, the max Lucene field length is reached. Maybe we should catch this
exception, remove the field from the doc, and add it to the index with a
indexingError.
Francois
Regards,
Jose García
On Wed, Oct 28, 2015 at 5:11 PM, Francois Prunayre <fx.prunayre@anonymised.com>
wrote:
Hi all, anyone know if _xlink field in the index is used ?
https://github.com/geonetwork/core-geonetwork/blob/develop/core/src/main/java/org/fao/geonet/kernel/DataManager.java#L507
When too many xlinks are defined in the record, indexing fails with
Error: Document contains at least one immense term in field="_xlink"
(whose UTF8 encoding is longer than the max length 32766), all of which
were skipped. Please correct the analyzer to not produce such terms. The
prefix of the first immense term is: '[32, 104, 116, 116, 112, 58, 47, 47,
99, 97, 116, 97, 108, 111, 103, 117, 101, 46, 102, 111, 114, 109, 97, 116,
105, 111, 110, 46, 115, 105]...', original message: bytes can be at most
32766 in length; got 141611
It may be useful to check which records use a subtemplate. But I can't
find something like this.
Thanks.
Francois
------------------------------------------------------------------------------
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork
--
*Vriendelijke groeten / Kind regards,Jose García
<http://www.geocat.net/>Veenderweg 136721 WD BennekomThe NetherlandsT: +31
(0)318 416664 <+31318416664> <https://www.facebook.com/geocatbv>
<https://twitter.com/geocat_bv>
<https://plus.google.com/u/1/+GeocatNetbv/posts>Please consider the
environment before printing this email.*
Hi Francois
But what mean the numbers? Are the identifiers used by the metadata editor for the elements? Just trying to understand the usage of that field.
Regards,
Jose García
···
On Wed, Oct 28, 2015 at 5:16 PM, Francois Prunayre <fx.prunayre@anonymised.com> wrote:
–
2015-10-28 17:13 GMT+01:00 Jose Garcia <jose.garcia@anonymised.com>:
Hi Francois
I’ve never used that field.
What stores that field? The ids of the the subtemplates used?
The list of xlink of the record. So it could be quite long URLs and at some point, the max Lucene field length is reached. Maybe we should catch this exception, remove the field from the doc, and add it to the index with a indexingError.
Francois
Regards,
Jose García
On Wed, Oct 28, 2015 at 5:11 PM, Francois Prunayre <fx.prunayre@anonymised.com> wrote:
Hi all, anyone know if _xlink field in the index is used ?
https://github.com/geonetwork/core-geonetwork/blob/develop/core/src/main/java/org/fao/geonet/kernel/DataManager.java#L507
When too many xlinks are defined in the record, indexing fails with
Error: Document contains at least one immense term in field=“_xlink” (whose UTF8 encoding is longer than the max length 32766), all of which were skipped. Please correct the analyzer to not produce such terms. The prefix of the first immense term is: ‘[32, 104, 116, 116, 112, 58, 47, 47, 99, 97, 116, 97, 108, 111, 103, 117, 101, 46, 102, 111, 114, 109, 97, 116, 105, 111, 110, 46, 115, 105]…’, original message: bytes can be at most 32766 in length; got 141611
It may be useful to check which records use a subtemplate. But I can’t find something like this.
Thanks.
Francois
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
–
Vriendelijke groeten / Kind regards,
Jose García
Veenderweg 13
6721 WD Bennekom
The Netherlands
T: +31 (0)318 416664
Please consider the environment before printing this email.
Vriendelijke groeten / Kind regards,
Jose García
Veenderweg 13
6721 WD Bennekom
The Netherlands
T: +31 (0)318 416664
Please consider the environment before printing this email.