Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix marketplace search #754

Merged
merged 2 commits into from
Sep 29, 2023
Merged

Fix marketplace search #754

merged 2 commits into from
Sep 29, 2023

Conversation

JR40159
Copy link
Member

@JR40159 JR40159 commented Sep 29, 2023

No description provided.

@JR40159 JR40159 changed the title Fix marketplace Fix marketplace search Sep 29, 2023
@@ -49,7 +49,7 @@ const ModelSchema = new Schema<ModelInterface>(
{
id: { type: String, required: true, unique: true, index: true },

name: { type: String, required: true },
name: { type: String, text: true, required: true },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You likely want to run this:

ModelSchema.index({ '$**': 'text' })

Which will index all fields? We'll also want to index the model card fields.

@a3957273 a3957273 merged commit e7f1c17 into main Sep 29, 2023
@a3957273 a3957273 deleted the bugfix/marketplace-search branch September 29, 2023 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants