# Attachment Type, updates only show on flush

**URL:** <https://discuss.elastic.co/t/attachment-type-updates-only-show-on-flush/14301>\
**Category:** Elasticsearch\
**Created:** [November 7, 2013, 11:11am UTC](https://discuss.elastic.co/t/attachment-type-updates-only-show-on-flush/14301 "2013-11-07T11:11:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeremy\_Hoyland](https://avatars.discourse-cdn.com/v4/letter/j/c67d28/32.png) [@Jeremy\_Hoyland](https://discuss.elastic.co/u/Jeremy_Hoyland)\
**Post date:** [November 7, 2013, 11:11am UTC](https://discuss.elastic.co/t/attachment-type-updates-only-show-on-flush/14301/1 "2013-11-07T11:11:54Z")

</div>

Hi,

I am having an issue with attachment type documents being processed so they  
show up as text, I have to send a flush to the server to get the uploaded  
document processed. Here's an extract from the mapping :

```
    "file" : {
      "type" : "attachment",
      "path" : "full",
      "fields" : {
        "file" : {
          "type" : "string",
          "store" : true,
          "term_vector" : "with_positions_offsets"
        },
        "author" : {
          "type" : "string"
        },
        "title" : {
          "type" : "string"
        },
        "name" : {
          "type" : "string"
        },
        "date" : {
          "type" : "date",
          "format" : "dateOptionalTime"
        },
        "keywords" : {
          "type" : "string"
        },
        "content_type" : {
          "type" : "string"
        }
      }
    },

```

On a related issue, would it be better to hold the file attachments in a separate type or even index to the meta data that goes with it? For many queries we may only be interested in the meta data, although for others we will want to use the file attachment terms in the search.

Thanks

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [November 14, 2013, 10:15am UTC](https://discuss.elastic.co/t/attachment-type-updates-only-show-on-flush/14301/2 "2013-11-14T10:15:04Z")

</div>

Hey,

can you create a curl/gist recreation and create an issue for this in the  
mapper plugin github repository? Thanks a lot!

--Alex

On Thu, Nov 7, 2013 at 12:11 PM, Jeremy Hoyland [derbexuk@gmail.com](mailto:derbexuk@gmail.com) wrote:

> Hi,
> 
> I am having an issue with attachment type documents being processed so  
> they show up as text, I have to send a flush to the server to get the  
> uploaded document processed. Here's an extract from the mapping :
> 
> ```
> "file" : {
> "type" : "attachment",
> "path" : "full",
> "fields" : {
> "file" : {
> "type" : "string",
> "store" : true,
> "term_vector" : "with_positions_offsets"
> },
> "author" : {
> "type" : "string"
> },
> "title" : {
> "type" : "string"
> },
> "name" : {
> "type" : "string"
> },
> "date" : {
> "type" : "date",
> "format" : "dateOptionalTime"
> },
> "keywords" : {
> "type" : "string"
> },
> "content_type" : {
> "type" : "string"
> }
> }
> },
> 
> ```
> 
> On a related issue, would it be better to hold the file attachments in a separate type or even index to the meta data that goes with it? For many queries we may only be interested in the meta data, although for others we will want to use the file attachment terms in the search.
> 
> Thanks
> 
> --  
> 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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:07am UTC](https://discuss.elastic.co/t/attachment-type-updates-only-show-on-flush/14301/3 "2017-07-06T02:07:08Z")

</div>

Closed on July 6, 2017, 2:07am UTC


