.
This commit is contained in:
+6
-5
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user