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

How to do exact matches? #345

Open
crysper opened this issue Dec 31, 2016 · 4 comments
Open

How to do exact matches? #345

crysper opened this issue Dec 31, 2016 · 4 comments

Comments

@crysper
Copy link

crysper commented Dec 31, 2016

The any word match works great, even though I prefer comma to separate words.

However, how can I search by record containing an exact phrase, for example if I have 2 records:
a) bio: I am CEO
b) bio: I am CFO

When I search with a query like this: "am CFO" to return only 1 result, not both. This is a very important feature so probably I'm just missing it. Of course, with any-word option enabled, without any_word option it gives this result, but I can't search by multiple words then.

@roboyak
Copy link

roboyak commented Apr 21, 2017

this is a great question.. trying to figure out the same issue? stumped

@petrsigut
Copy link

I have the same issue, not able to search for phrases...

@iainbryson
Copy link

This would be really helpful too. Even allowing a "raw" tsquery mode would be very helpful, so that we can just put in to_tsquery('english', 'mister <-> robot')).

@nurey
Copy link

nurey commented Sep 5, 2019

I whipped up a PR for this as a followed_by option. Let me know what you think. #417

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

5 participants