I created an index that contains a simple analyser application =>
Applications :
curl -XPUT 'http://localhost:9200/mydocu/' -d '{
"settings" : {"index" : {"analysis" : {"analyzer" : { "synonym" :
{"tokenizer" : "whitespace","filter" : ["synonym"]} },"filter" : {"synonym"
: {"type" : "synonym", "ignore_case" : true, "synonyms" :
["application => applications"]}}}}}}'
and I used the following mapping :
curl -XPUT 'http://localhost:9200/mydocu/docu/_mapping' -d '
{
"docu" : {
"properties" : {"file" : {"type" : "attachment","path" :
"full","fields" : {"file" : {"type" : "string","store" :
"yes","term_vector" : "with_positions_offsets","index" :
"analyzed","analyzer" : "french"},"author" : {"type" : "string"},"title" :
{"type" : "string","store" : "yes"}, "name" : {"type" : "string"},"date" :
{"type" : "date","format" : "dateOptionalTime"},"keywords" : {"type" :
"string"},"content_type" : {"type" : "string" }}}, "name" : {"type" :
"string","analyzer" : "keyword"},"pathEncoded" : {"type" :
"string","analyzer" : "keyword"}, "postDate" : {"type" : "date","format" :
"dateOptionalTime"},"rootpath" : {"type" : "string","analyzer" :
"keyword"},"virtualpath" : { "type" : "string","analyzer" : "keyword"}}}}'
- and i create the following river:*
curl -XPUT 'localhost:9200/_river/riverdocu/_meta' -d '{
"type": "fs",
"fs": {
"name": "document river",
"url": "C:\tempDoc",
"update_rate": 180000,
"includes": [ ".doc" , ".xls", ".pdf", ".txt" ]
},
"index": {
"index": "mydocu",
"type": "docu",
}
}'
*but I get this error when the river trying to search for documents :
[2013-03-15 16:01:10,015][DEBUG][action.search.type ] [Arcademan] [1]
Failed to execute fetch phase
org.elasticsearch.transport.RemoteTransportException:
[Loa][inet[/172.16.10.61:9301]][search/phase/fetch/id]
Caused by: org.elasticsearch.indices.TypeMissingException: [_river]
type[riverdocu] missing: failed to find type loaded for doc [_meta]
at
org.elasticsearch.search.fetch.FetchPhase.execute(FetchPhase.java:165)
at
org.elasticsearch.search.SearchService.executeFetchPhase(SearchService.java:438)
at
org.elasticsearch.search.action.SearchServiceTransportAction$SearchFetchByIdTransportHandler.messageReceived(SearchServiceTransportAction.java:634)
at
org.elasticsearch.search.action.SearchServiceTransportAction$SearchFetchByIdTransportHandler.messageReceived(SearchServiceTransportAction.java:623)
at
org.elasticsearch.transport.netty.MessageChannelHandler$RequestHandler.run(MessageChannelHandler.java:268)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
*
--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.