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

[Core] Add Full text search #128

Open
yuripourre opened this issue Aug 1, 2021 · 1 comment
Open

[Core] Add Full text search #128

yuripourre opened this issue Aug 1, 2021 · 1 comment

Comments

@yuripourre
Copy link
Member

yuripourre commented Aug 1, 2021

This will be very hard to do.

One way to do it is to have a separate collection with all the concepts condensed with attributes' names. So if we need to perform a full text search we can use this collection instead.

collection.createIndex("db_text", indexOptions(IndexType.Fulltext));
//To search
text("conceptID", "term");

The only downside of this approach is that each update should be applied to both collections.

References:
https://www.dizitart.org/nitrite-database/

@yuripourre
Copy link
Member Author

Setting a custom TextEngine:

Nitrite db = Nitrite.builder()
        .filePath("/tmp/test.db")
        .textIndexingService(new MyTextIndexingEngine())
        .openOrCreate();

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

No branches or pull requests

1 participant