Cannot search for text "WAS"?


(zibarth) #1

I'm running into a strange issue where I don't get results when I do a query string search for "WAS". Any other string I search for works fine, as far as I'm aware.

I've created a gist to walk anyone through what I'm doing:

Is "WAS" some kind of keyword in ElasticSearch?


(David Pilato) #2

It's an english common word. So, if you use default mapping for strings, words
like the, are, was, ... are not indexed.
See here :
http://www.elasticsearch.org/guide/reference/index-modules/analysis/standard-analyzer.html
http://www.elasticsearch.org/guide/reference/index-modules/analysis/standard-analyzer.html
It uses the default token filter
http://www.elasticsearch.org/guide/reference/index-modules/analysis/stop-tokenfilter.html
http://www.elasticsearch.org/guide/reference/index-modules/analysis/stop-tokenfilter.html

HTH
David.

Le 4 juin 2012 à 17:26, zibarth zibarthtx@gmail.com a écrit :

I'm running into a strange issue where I don't get results when I do a query
string search for "WAS". Any other string I search for works fine, as far as
I'm aware.

I've created a gist to walk anyone through what I'm doing:
https://gist.github.com/2854076

Is "WAS" some kind of keyword in ElasticSearch?

--
View this message in context:
http://elasticsearch-users.115913.n3.nabble.com/Cannot-search-for-text-WAS-tp4018790.html
Sent from the ElasticSearch Users mailing list archive at Nabble.com.

--
David Pilato
http://dev.david.pilato.fr/
Twitter : @dadoonet


(zibarth) #3

Thanks for the info!


(system) #4