# RE: about es

**URL:** <https://discuss.elastic.co/t/re-about-es/6785>\
**Category:** Elasticsearch\
**Created:** [February 22, 2012, 8:10pm UTC](https://discuss.elastic.co/t/re-about-es/6785 "2012-02-22T20:10:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 22, 2012, 8:10pm UTC](https://discuss.elastic.co/t/re-about-es/6785/1 "2012-02-22T20:10:19Z")

</div>

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](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 ?

> **[elastic/elasticsearch-mapper-attachments](https://github.com/elastic/elasticsearch-mapper-attachments)**
>
> elasticsearch-mapper-attachments - Mapper Attachments Type plugin for Elasticsearch

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](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](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" : {}

}

```

}

}'

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 3:38am UTC](https://discuss.elastic.co/t/re-about-es/6785/2 "2017-07-06T03:38:32Z")

</div>


