mirror of
https://github.com/modrinth/code.git
synced 2026-09-04 05:48:57 +00:00
Fix Typesense tests (#5541)
* Fix Typesense tests * fix * add back author * Split project title and authors by words and index on that * clippy
This commit is contained in:
@@ -186,6 +186,9 @@ pub enum SearchBackendKind {
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, strum::EnumIter)]
|
||||
pub enum SearchField {
|
||||
Categories,
|
||||
Name,
|
||||
Author,
|
||||
License,
|
||||
ProjectTypes,
|
||||
ProjectId,
|
||||
OpenSource,
|
||||
@@ -225,7 +228,9 @@ pub struct UploadSearchProject {
|
||||
pub project_types: Vec<String>,
|
||||
pub slug: Option<String>,
|
||||
pub author: String,
|
||||
pub indexed_author: String,
|
||||
pub name: String,
|
||||
pub indexed_title: String,
|
||||
pub summary: String,
|
||||
pub categories: Vec<String>,
|
||||
pub display_categories: Vec<String>,
|
||||
|
||||
Reference in New Issue
Block a user