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

Random Search results #321

Open
asheynkman opened this issue Aug 22, 2016 · 3 comments
Open

Random Search results #321

asheynkman opened this issue Aug 22, 2016 · 3 comments

Comments

@asheynkman
Copy link

Hi Guys ,
We facing an interesting issue with pg_search while searching by 2 characters or special characters, sometimes we getting results and sometimes don't

pg_search_scope :search_by_name,
against: [:name],
using: {
tsearch: { prefix: true, any_word: true, dictionary: "english", negation: true }
},
ignoring: :accents
Example :
Search by "HR" returns correct results
Search by "IT" return no results
Search by "john@" return no results

These just examples , any clues would be appreciated.

Thank you

@fatboypunk
Copy link

The it is excluded from results because your dictionary is set to english. Documentation can be found here at stop words

@asheynkman
Copy link
Author

@fatboypunk Thank you reply, how about "john@th" does not return result

@fatboypunk
Copy link

fatboypunk commented Aug 22, 2016

how about "john@th" does not return result

#224 i think this issue is related to that.

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

2 participants