realm-java icon indicating copy to clipboard operation
realm-java copied to clipboard

Full text search

Open tdscientist opened this issue 10 years ago • 19 comments

Kindly integrate a full text search for realm

tdscientist avatar Jun 10 '15 23:06 tdscientist

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.

cmelchior avatar Jun 11 '15 05:06 cmelchior

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?

bmunkholm avatar Jun 11 '15 10:06 bmunkholm

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

bangarharshit avatar Oct 29 '15 09:10 bangarharshit

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

saket avatar Oct 29 '15 10:10 saket

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.

bangarharshit avatar Nov 07 '15 06:11 bangarharshit

:+1:

skhaz avatar Dec 11 '15 13:12 skhaz

+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.

shuhaodo avatar Jan 06 '16 18:01 shuhaodo

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.

bangarharshit avatar Jan 07 '16 04:01 bangarharshit

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

usernotnull avatar Jul 06 '16 09:07 usernotnull

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

roberhofer avatar Jun 20 '18 21:06 roberhofer

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.

DrifterAtSea avatar Jun 23 '19 09:06 DrifterAtSea

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

skhaz avatar Jun 23 '19 12:06 skhaz

@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.

bmunkholm avatar Jun 24 '19 15:06 bmunkholm

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

rkazakov avatar May 05 '20 11:05 rkazakov

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 [email protected] we can set up a time to quickly chat - this would be greatly appreciated.

ianpward avatar Nov 17 '20 03:11 ianpward

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

agape-apps avatar Jul 26 '21 11:07 agape-apps

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

ianpward avatar Jul 26 '21 12:07 ianpward

need this feature

wz2cool avatar Feb 04 '22 12:02 wz2cool

Hello,

Any news regarding this feature?

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

guicara avatar Apr 21 '22 13:04 guicara