First time here? Check out the FAQ!
1

underscore(_) is considered a white space in search?
 

When we are searching with words that include an underscore (on a postgresql backend), it looks like the underscore is considered like a space and searches 2 words instead.

For example, putting long_word in the search box displays questions that have long AND word but does not specifically search for long_word.

Is it possible to change this behavior?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Benoit's avatar
875
Benoit
asked 13 years ago

Comments

see more comments

1 Answer

0

Benoit, it is all done on the level of the database. Postgres itself tokenizes the query string, possibly it splits the words by the underscores as well. I gave only a very brief look into the docs and could not find anything quickly, but I will continue tomorrow.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 13 years ago
link

Comments

see more comments