RE: about es


(David Pilato) #1

Hi,

Please use the mailing list as someone else could answer also and other
users with same problems can find the discussion and get information.

Can you give a full curl recreation ?

curl commands when you create your couchdb database, when you put your
document then when you add your attachment.

curl commands when you create the mapping, then when you create the river
and then when you search for your doc.

and also what can you see in ES logs ?

Did you download this version :
https://github.com/downloads/dadoonet/elasticsearch-river-couchdb/elasticsea
rch-river-couchdb-1.1.0-SNAPSHOT.zip ?

Did you install as well the Mapper attachment plugin ?

HTH

David

De : goog cheng

Envoyé : mardi 21 février 2012 14:48
Objet : about es

Hi, david! i have read the
https://github.com/dadoonet/elasticsearch-river-couchdb/blob/attachments/REA
DME.md , i took the steps, It seems that I didn't build the full text
search.

here is my code ,help me check it ,ok?? thanks a lot!!!!!!

curl -XPUT 'localhost:9200/_river/tapirwiki/_meta' -d '{

"type" : "couchdb",

"couchdb" : {

    "host" : "localhost",

    "port" : 5984,

    "db" : "tapirwiki",

    "filter" : null

},

"index" : {

    "index" : "tapirwiki",

    "type" : "tapirwiki",

    "bulk_size" : "100",

    "bulk_timeout" : "10ms"

}

}'

curl -X PUT 'http://localhost:9200/tapirwiki/tapirwiki/_mapping' -d '{

"tapirwiki": {

"properties": {

  "_attachments": {

    "properties": {

    "file" : {

    "type" : "attachment",

    "fields" : {

      "title" : { "store" : "yes" },

      "file" : { "term_vector":"with_positions_offsets", "store":"yes" }

                }

      }

    }

  }

}

}

}'

curl "localhost:9200/_search?prety=true" -d '{

"fields" : ["file"],

"query" : {

"query_string" : {

  "query" : "hadoop"

}

},

"highlight" : {

"fields" : {

  "file" : {}

}

}

}'


(system) #2