primary_tag
tag : value
tag : value
primary_tag
tag : value
...
The two first line has already here but the other can be more
important or unexists so i've a script which puts in a array all
primary_tag, in other the tag and one other array contain values.
So to index them i've done :
$result = $es->index(
index => $index,
type => $type,
id => $i,
data => {
id => $id,
DESC => $desc
},
);
my $k = 0;
foreach my $features_object (@features){
my $bornes = $bornes_inf[$k]."..".$bornes_sup[$k];
my $primary_tag = $features_object->primary_tag();
$primary_tag = uc($primary_tag);
for($features_object->get_all_tags()){
my $tag = $_;
for my $valeur ($features_object->get_tag_values($tag)){
$result = $es->update(
index => $index,
type => $type,
id => $i,
script => "ctx._source[\"$primary_tag\_$bornes/$tag\"]=
The problem is that script index data with field : prymary_tag/bornes/
tag : value because some tag can be similar so i use "borne" to
differency them.
primary_tag
tag : value
tag : value
primary_tag
tag : value
...
The two first line has already here but the other can be more
important or unexists so i've a script which puts in a array all
primary_tag, in other the tag and one other array contain values.
So to index them i've done :
$result = $es->index(
index => $index,
type => $type,
id => $i,
data => {
id => $id,
DESC => $desc
},
);
my $k = 0;
foreach my $features_object (@features){
my $bornes = $bornes_inf[$k]."..".$bornes_sup[$k];
my $primary_tag = $features_object->primary_tag();
$primary_tag = uc($primary_tag);
for($features_object->get_all_tags()){
my $tag = $_;
for my $valeur ($features_object->get_tag_values($tag)){
$result = $es->update(
index => $index,
type => $type,
id => $i,
script => "ctx._source[\"$primary_tag\_$bornes/$tag\"]=
The problem is that script index data with field : prymary_tag/bornes/
tag : value because some tag can be similar so i use "borne" to
differency them.
primary_tag
tag : value
tag : value
primary_tag
tag : value
...
The two first line has already here but the other can be more
important or unexists so i've a script which puts in a array all
primary_tag, in other the tag and one other array contain values.
So to index them i've done :
$result = $es->index(
index => $index,
type => $type,
id => $i,
data => {
id => $id,
DESC => $desc
},
);
my $k = 0;
foreach my $features_object
(@features){
The problem is that script index data with field : prymary_tag/bornes/
tag : value because some tag can be similar so i use "borne" to
differency them.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.