-
Notifications
You must be signed in to change notification settings - Fork 578
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
Expose minimal full text search #5755
Comments
➤ Kyle Rollins commented: [~[email protected]], is this work going into Realm.js v12.0.0? I want to make sure I've got the timing right for docs. |
➤ papafe commented: [~[email protected]] yes, this should be included in the final v12 version |
Is full-text indexing and corresponding queries for it in the docs anywhere yet? I can't find it anywhere. I see the TS types properly exposes |
Hey @GitMurf, we're still working on adding the info to the docs, you're correct. But summing up to use full-text search you need to:
class Story extends Realm.Object<Story> implements IStory {
title?: string;
content?: string;
static schema: ObjectSchema = {
name: "Story",
properties: {
title: { type: "string" },
content: { type: "string", indexed: "full-text" },
},
primaryKey: "title",
};
}
const stories = realm.objects("Story");
const filtered = stories.filtered("content TEXT $0", "two dog"); |
No description provided.
The text was updated successfully, but these errors were encountered: