Commit e2a47afa authored by Emmanuel Raviart's avatar Emmanuel Raviart

Correct index of flattened documents.

parent 5375475d
Pipeline #101664 passed with stage
in 2 minutes and 15 seconds
......@@ -37,6 +37,7 @@ impl AccordInternational {
pub fn index_divisions(&mut self, index: &mut i32, documents_indexes: &mut Vec<i32>) {
if let Some(ref mut divisions) = self.divisions {
for mut division in &mut divisions.divisions {
documents_indexes.push(*index);
division.index_document(index);
}
}
......@@ -262,6 +263,7 @@ impl AvisConseilEtat {
pub fn index_divisions(&mut self, index: &mut i32, documents_indexes: &mut Vec<i32>) {
if let Some(ref mut divisions) = self.divisions {
for mut division in &mut divisions.divisions {
documents_indexes.push(*index);
division.index_document(index);
}
}
......@@ -868,6 +870,7 @@ impl DocumentEtudeImpact {
pub fn index_divisions(&mut self, index: &mut i32, documents_indexes: &mut Vec<i32>) {
if let Some(ref mut divisions) = self.divisions {
for mut division in &mut divisions.divisions {
documents_indexes.push(*index);
division.index_document(index);
}
}
......@@ -1036,6 +1039,7 @@ impl RapportParlementaire {
pub fn index_divisions(&mut self, index: &mut i32, documents_indexes: &mut Vec<i32>) {
if let Some(ref mut divisions) = self.divisions {
for mut division in &mut divisions.divisions {
documents_indexes.push(*index);
division.index_document(index);
}
}
......@@ -1162,6 +1166,7 @@ impl TexteLoi {
pub fn index_divisions(&mut self, index: &mut i32, documents_indexes: &mut Vec<i32>) {
if let Some(ref mut divisions) = self.divisions {
for mut division in &mut divisions.divisions {
documents_indexes.push(*index);
division.index_document(index);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment