Skip to content

Postgres offers full-text searching right out of the box. #16

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

Merged
merged 1 commit into from
Dec 7, 2015

Conversation

jamesfwz
Copy link
Contributor

@jamesfwz jamesfwz commented Dec 7, 2015

Context: We have a project with title "In hac habitasse platea dictumst"

Project.where("title Ilike :title", title: "Hac Habitasse platea")
=> 1 result.

Project.where("title Ilike :title", title: "Hac platea")
=> 0 result.

Project.where("title @@ :title", title: "Hac platea")
=> 1 result.

Context: We have a project with title "In hac habitasse platea dictumst"

```
Project.where("title Ilike :title", title: "Hac Habitasse platea")
=> 1 result.

Project.where("title Ilike :title", title: "Hac platea")
=> 0 result.

Project.where("title @@ :title", title: "Hac platea")
=> 1 result.
```
@stevenyap
Copy link
Contributor

👍

stevenyap added a commit that referenced this pull request Dec 7, 2015
Postgres offers full-text searching right out of the box.
@stevenyap stevenyap merged commit f78bfbf into master Dec 7, 2015
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

Successfully merging this pull request may close these issues.

2 participants