realm / realm-java

Realm is a mobile database: a replacement for SQLite & ORMs
http://realm.io
Apache License 2.0
11.45k stars 1.75k forks source link

Full text search #1205

Open tdscientist opened 9 years ago

tdscientist commented 9 years ago

Kindly integrate a full text search for realm

cmelchior commented 9 years ago

Hi @tdscientist Thank you for the suggestion. It is something we have on our radar as well, but at the moment we don't have any timeframe as it requires changes to the underlying storage engine.

bmunkholm commented 9 years ago

Hi @tdscientist Actually it would be lovely to hear more specifically what features you need. As you likely know it's a complicated topic and there are many different sub features to support. What would be the minimal support needed for it to be useful to you?

bangarharshit commented 8 years ago

Hi @cmelchior @bmunkholm , I am too looking for full text search something similar to http://www.sqlite.org/fts3.html. I am making a chat app and it's great if I can add search over existing chat. A very raw version can be to use contains() condition on the field itself. I can think as spaced content as chain of contains. If you want to find something "arbit space". find all text with arbit and then in that result find space. Some other things I can think of is to spell correction , synonyms expansion and other things clients want to do but it is not realm's responsibilty and client can generate queries before making call to realm. What are your suggestions? The only thing I need to do is to hightlight the content so that the user know what is matched? To add is there a way to find position of matching text

saket commented 8 years ago

Why can you not simply search the message body in Realm?

bangarharshit commented 8 years ago

We can. It's a bad idea to do that. It searches in between words which is a really bad experience. I was wrong and I think indexing is the only solution which may be faster on core.

skhaz commented 8 years ago

:+1:

shuhaodo commented 8 years ago

+1 We are building an email client and being able to do search like "Flight to Seattle" is a big deal to the user experience.

bangarharshit commented 8 years ago

To anyone who is interested a workaround we are using - https://gist.github.com/bangarharshit/c880c5427a0614a010e4 . It will be able to do search like "Flight to seattle", just make sure to index the field. It will find the results in which all the words match. Things like stopwords and any other search logic needs to be taken care off.

usernotnull commented 8 years ago

@bangarharshit thanks it solved my problem. Hopefully one such method would be integrated in Realm in the future.

roberhofer commented 6 years ago

Referenced in AHA: https://realmio.aha.io/epics/ROS-E-15

JohannRosenberg commented 5 years ago

4 years on and no support for full text search? Guess it wasn't on your radar after all. Will look elsewhere for a product that supports this.

skhaz commented 5 years ago

@JohannBlake I'm using firebase/firestore with algolia, works fine.

bmunkholm commented 5 years ago

@JohannBlake It is a feature that we will make at some point, but you are right it hasn't been one of the top features we have prioritized above many others. Unfortunately, the time of issue creation isn't really related to priority in any way. We will get to it, but sorry we can't say when at this time.

rkazakov commented 4 years ago

Please upvote the Full text search feature here: https://feedback.mongodb.com/forums/923521-realm.

ianpward commented 3 years ago

Hey All, Product for Realm here, we are interested in doing some user research on full-text search for the Realm SDK. If you could help us answer some questions then we can look to add this to the product roadmap. If you could please email me at ian.ward@mongodb.com we can set up a time to quickly chat - this would be greatly appreciated.

agape-apps commented 3 years ago

@ianpward any updates on the full text search feature development?

ianpward commented 3 years ago

Currently, it sits as a high-priority backlog item - we hope to pick it up soon

wz2cool commented 2 years ago

need this feature

guicara commented 2 years ago

Hello,

Any news regarding this feature?

Is it still "a high-priority backlog item"?