Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
cncases committed Nov 7, 2024
1 parent e6299d9 commit 58206f6
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 24 deletions.
48 changes: 24 additions & 24 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ use tantivy::{
schema::Value,
DocAddress, Score, TantivyDocument,
};
use tracing::info;

use crate::{AppState, Case, CONFIG};

Expand Down Expand Up @@ -61,6 +62,7 @@ pub async fn search(
let mut ids: IndexSet<u32> = IndexSet::with_capacity(20);
let mut total = 0;
if !search.is_empty() {
info!("searching: {}", search);
let query = match input.search_type.as_deref() {
Some("legal_basis") => format!("legal_basis:{}", search),
Some("cause") => format!("cause:{}", search),
Expand Down

0 comments on commit 58206f6

Please sign in to comment.