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?

Benoit's avatar
875
Benoit
asked 2011-05-26 20:23:50 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment 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.

Evgeny's avatar
13.2k
Evgeny
answered 2011-05-27 03:58:37 -0600
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments