i have a Elasticsearch 1.5 running on my server,

specifically i want/create three field with is 1.name field 2.description
3.nickname

i want setup stopword for decription and nickname field ,when i insert the
data on the Elasticsearch then stop word automatically remove unwanted
stopword. im trying so many time but not working.


curl -X POST http://127.0.0.1:9200/tryoindex/ -d'
{
  "settings": {
    "analysis": {
      "filter": {
        "custom_english_stemmer": {
          "type": "stemmer",
          "name": "english"
        },
        "snowball": {
          "type" : "snowball",
          "language" : "English"
                }
      },
      "analyzer": {
        "custom_lowercase_stemmed": {
          "tokenizer": "standard",
          "filter": [
            "lowercase",
            "custom_english_stemmer",
            "snowball"
          ]
        }
      }
    }
  },
  "mappings": {
    "test": {
    "_all" : {"enabled" : true},
      "properties": {
        "text": {
          "type": "string",
          "analyzer": "custom_lowercase_stemmed"
        }
      }
    }
  }
}'

curl -X POST "http://localhost:9200/tryoindex/nama/1"; -d '{
  "text" : "Tryolabs running monkeys KANGAROOS and jumping elephants jum is
your"
}'

curl "http://localhost:9200/tryoindex/nama/_search?pretty=1"; -d '{
"query": {
    "query_string": {
        "query": "Tryolabs running monkeys KANGAROOS and jumping elephants
jum is your",
        "fields": ["text"]
    }
  }
}'



--
View this message in context: 
http://elasticsearch-users.115913.n3.nabble.com/How-to-use-stopword-elasticsearch-tp4073507.html
Sent from the ElasticSearch Users mailing list archive at Nabble.com.

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/1428900494045-4073507.post%40n3.nabble.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to