Case sensitivity


(GambitK) #1

Are searches on elasticsearch case sensitive?

Right now I'm searching the message field for "Term" and "term" and I get
different results. Any way to change this behavior?
I would like to be able to search without case sensitivity.


(Clinton Gormley) #2

On Wed, 2012-01-04 at 05:10 -0800, GambitK wrote:

Are searches on elasticsearch case sensitive?

Right now I'm searching the message field for "Term" and "term" and I
get different results. Any way to change this behavior?
I would like to be able to search without case sensitivity.

Don't use a 'term' query. Use a 'text' query

clint


(GambitK) #3

I'm using elasticsearch-head to do direct searches on an index that was
created by graylog2.
My options for search are: term, wildcard, prefix, fuzzy, range and
query_string.


(Clinton Gormley) #4

On Wed, 2012-01-04 at 05:41 -0800, GambitK wrote:

I'm using elasticsearch-head to do direct searches on an index that
was created by graylog2.
My options for search are: term, wildcard, prefix, fuzzy, range and
query_string.

Then try the query_string query

You can read more about them here:
http://www.elasticsearch.org/guide/reference/query-dsl/

and see this tutorial:
http://www.elasticsearch.org/tutorials/2011/08/28/query-dsl-explained.html

clint


(Karussell) #5

My options for search are: term, wildcard, prefix, fuzzy, range and
query_string.

No, you can do any query when using "Any Request"


(system) #6