SHA256
1
0
This commit is contained in:
Alex Wied
2026-06-09 17:20:46 -04:00
parent 27c92bb2cf
commit 1f8c6201b4
5 changed files with 123 additions and 105 deletions
+6 -5
View File
@@ -1,7 +1,7 @@
use crate::rdf::ontology::Ontology;
use crate::rdf::vocab::{gl, rda};
use crate::rdf::term_helper::{TermHelper, TermHelperMut};
use gl_search::{doc, Schema, SearchDocument, SearchIndex};
use crate::rdf::vocab::{gl, rda};
use gl_search::{Schema, SearchDocument, SearchIndex, doc};
use http::StatusCode;
use iced::alignment::Horizontal;
use iced::widget::button::Style;
@@ -121,7 +121,9 @@ impl Publisher {
document.add_text(Schema::field("comment"), comment.to_lowercase());
}
index.add(document).expect("Unable to add annotated IRI to search index");
index
.add(document)
.expect("Unable to add annotated IRI to search index");
});
index.commit().expect("Unable to commit ontology to index");
@@ -669,8 +671,7 @@ impl Publisher {
.on_press(Message::SearchResultClicked(result.clone()))
.style(button::text)
});
let results_table =
scrollable(table([type_column, iri_column], &search_state.results));
let results_table = scrollable(table([type_column, iri_column], &search_state.results));
return column![search_input, results_table].into();
}