Prisma1: Add Full-text search support

Created on 6 Nov 2017  路  15Comments  路  Source: prisma/prisma1

I think it would be useful to have a way to do full-text search without using external services such as Algolia.

In a first step, it could be useful to have a "q" parameter which executes a "LIKE" query on all the fields of an entity (instead of doing OR(contains, contains, contains...).

Then it would be great to have real full-text search, configurable via the .yml file (which entities and fields to index) and have something like a "s" parameter which does the full-text query over the indexed fields, maybe using the Elastic Search service of AWS.

Thank you,
Matteo

areapi statustale

Most helpful comment

Any progress?

All 15 comments

Any progress?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.

this is crazy, so old issue, so important issue, so little interest!

For our project we are also in a desperate need for full text search. Please implement this!

Any news on this??? 馃槥

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.

Nothing?

For our project we are also in a desperate need for full text search. Please implement this!

Hi! @Bartjuh4 You can use a custom sql: https://www.prisma.io/forum/t/how-to-use-custom-sql/3653

What can we do to help implement this really really needed feature?

Actually, we could implement something similar to @id, @createdAt, @updatedAt, and so forth.

It could be something like @searchable or @searchIndex or I don't know, with properties like fields and separator.

And by adding it to a field, prisma would automatically concatenate the given fields into one lowercased and unaccentuated string.

Then we could do a simple field_contains on this field.

The principle is not to be able to edit this field as it is automatically handled by prisma.

Simpler than implementing a whole full-text search support, which would take longer to execute.

What do you think?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.

+1

Any improvment on this? Is this planned to be supported anytime soon or not?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.

Any plans to support this anytime soon? If not, are there any workarounds?

Was this page helpful?
0 / 5 - 0 ratings