Skip to content

Commit 4a34956

Browse files
committed
Refactor description field handling in entity metadata schema
- Updated the `description` field in `create_entity_metadata_schema` to include both Fulltext and Embedding indexing types, enhancing search capabilities. - Removed commented-out code for clarity and improved readability of the schema definition.
1 parent 10c6734 commit 4a34956

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/apps/wikidata/schema.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,12 @@ pub fn create_entity_metadata_schema() -> Schema {
8888
let key_field = vec!["id".to_string()];
8989
let fields = vec![
9090
Field::new_unindexed("id", Type::String), // Entity ID this metadata belongs to
91-
// Field::new_indexed(
92-
// "description",
93-
// Type::String,
94-
// vec![IndexType::Fulltext, IndexType::Embedding(embedding_model)],
95-
// ),
96-
Field::new_indexed("description", Type::String, vec![IndexType::Fulltext]),
91+
Field::new_indexed(
92+
"description",
93+
Type::String,
94+
vec![IndexType::Fulltext, IndexType::Embedding(embedding_model)],
95+
),
96+
// Field::new_indexed("description", Type::String, vec![IndexType::Fulltext]),
9797
Field::new_indexed_array("aliases", Type::String, vec![IndexType::Fulltext]),
9898
Field::new_unindexed_nullable("sitelinks", Type::String), // Optional: JSON string
9999
Field::new_unindexed_nullable("other_data", Type::String), // Optional: JSON string

0 commit comments

Comments
 (0)