Anaysis on stops words

Hi,

I using sense in chrome to create an index to prevent stop words from indexing. I new to elastic search, the api seem to be everywhere. or probably i mislooked it. Any ideas how to i go about forming the JSON to create an stop analysis in an index.
Found some links:
Put /test/_settings
{
"index": {
"number_of_shards" : 3,
"analysis": {
"analyzer": {
"english" : {
"type":"english",
"stopwords" : ["the", "stop1"]
}
}
}
}
}
It does not works. And the terms like "type" are not in the official documents http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-update-settings.html.
I might miss out some JSON terms in it.

How to prevent stop words from searching. Should I prevent it from indexing? or before passing the query to search, I should remove those stop words?