Attachment Type, updates only show on flush

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.
For more options, visit https://groups.google.com/groups/opt_out.

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 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.
For more options, visit 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.
For more options, visit https://groups.google.com/groups/opt_out.