hello
i have a csv file with this field
"type" : "255~15674532~15724727~50195|256~41089839104~41221424128~131585024"
and another csv file with 3 fields value , name , function
first i used this ruby filter code to split this type field
okay so the type_ID is the same as value in the other csv file. so what i want is to return the 2 fields name and function of the type_ID so like i receive random type_ID and i want to index them with their name and function from the other csv file idk if there is a filter that can help or the ruby filter or translation
Yeah it is a variable number , i have a lot of Types so can you show me how can i implement it in a ruby filter like showing the type_name and type_function for each type
well let me tell you my case so i can simplify everything so I have 2 csv files reference_1.csv and reference_2.csv
plus the one I am indexing
I have 2 fields test1 and test2
test1 has {
"test1_ID": "123"
etc
}
test2 is
test2{
"test2_name": "name"
etc
}
the reference_2.csv has
test1_id test2_name Description code_name
12 name1 xxxx xxxx
12 name2 xxxx xxxx
13 name1 xxxx xxxx
13 name2 xxxx xxxx
I want to check if test1_id is available in reference_2 than I reference to it else I reference to reference_1
then I want to use test1_id and test2_name as keys to take code_name
so I get
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.