pg_search icon indicating copy to clipboard operation
pg_search copied to clipboard

Random Search results

Open asheynkman opened this issue 9 years ago • 3 comments

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

asheynkman avatar Aug 22 '16 17:08 asheynkman

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

fatboypunk avatar Aug 22 '16 17:08 fatboypunk

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

asheynkman avatar Aug 22 '16 18:08 asheynkman

how about "john@th" does not return result

https://github.com/Casecommons/pg_search/issues/224 i think this issue is related to that.

fatboypunk avatar Aug 22 '16 18:08 fatboypunk