Skip to content
This repository was archived by the owner on Dec 18, 2021. It is now read-only.

Can't use langdetect mapping #6

Closed
siniG opened this issue Oct 24, 2013 · 2 comments
Closed

Can't use langdetect mapping #6

siniG opened this issue Oct 24, 2013 · 2 comments

Comments

@siniG
Copy link

siniG commented Oct 24, 2013

Hi,
I've just started using your plugin (very impressive!) and I'm running into a small issue with version 2.0.
When creating a map having a type=langdetect I get an error:

e.g.
curl -XPOST localhost:9200/test/article/_mapping -d '
{
"article" : {
"properties" : {
"content" : { "type" : "langdetect" }
}
}
}'
I receive an exception and mapping is not created.
[2013-10-24 11:39:57,096][WARN ][transport.netty ] [Aardwolf] Message not fully read (response) for [673] handl
er org.elasticsearch.action.support.master.TransportMasterNodeOperationAction$4@4dc51e57, error [true], resetting

However, when running the same command using the prior plugin version I get a successful response.

@jprante
Copy link
Owner

jprante commented Oct 24, 2013

I'm unable to reproduce.

bash-3.2$ java -version
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)
bash-3.2$ ./bin/elasticsearch -f
[2013-10-24 18:19:41,536][INFO ][node                     ] [Remnant] version[0.90.5], pid[33148], build[c8714e8/2013-09-17T12:50:20Z]
[2013-10-24 18:19:41,537][INFO ][node                     ] [Remnant] initializing ...
[2013-10-24 18:19:41,637][INFO ][plugins                  ] [Remnant] loaded [knapsack, langdetect, jdbc-river], sites []
[2013-10-24 18:19:46,311][INFO ][node                     ] [Remnant] initialized
[2013-10-24 18:19:46,311][INFO ][node                     ] [Remnant] starting ...
[2013-10-24 18:19:47,188][INFO ][transport                ] [Remnant] bound_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish_address {inet[/192.168.1.113:9300]}
[2013-10-24 18:19:51,615][INFO ][cluster.service          ] [Remnant] new_master [Remnant][WlGO3ikVSOG7DzPDAOjwVg][inet[/192.168.1.113:9300]], reason: zen-disco-join (elected_as_master)
[2013-10-24 18:19:53,118][INFO ][discovery                ] [Remnant] elasticsearch/WlGO3ikVSOG7DzPDAOjwVg
[2013-10-24 18:19:53,182][INFO ][http                     ] [Remnant] bound_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish_address {inet[/192.168.1.113:9200]}
[2013-10-24 18:19:53,182][INFO ][node                     ] [Remnant] started
[2013-10-24 18:19:54,610][INFO ][gateway                  ] [Remnant] recovered [1] indices into cluster_state

curl -XDELETE localhost:9200/test

[2013-10-24 18:21:33,834][INFO ][cluster.metadata         ] [Remnant] [test] deleting index

curl -XPUT localhost:9200/test

[2013-10-24 18:22:00,664][INFO ][cluster.metadata         ] [Remnant] [test] creating index, cause [api], shards [5]/[1], mappings []

curl -XPOST localhost:9200/test/article/_mapping -d '
{
"article" : {
"properties" : {
"content" : { "type" : "langdetect" }
}
}
} '

[2013-10-24 18:20:11,926][INFO ][cluster.metadata         ] [Remnant] [test] create_mapping [article]

@jprante
Copy link
Owner

jprante commented Nov 5, 2013

Update to 0.90.5+ recommended.

@jprante jprante closed this as completed Nov 5, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants