Problem with attachment mapping

Hi

I'm trying to use the attachment plugin with the data type. It seems
like installing the problem worked as expected. During starting
elasticsearch shows the following line:

[2010-10-01 14:20:12,577][INFO ][plugins ] [Rebel]
loaded [analysis-icu]

Now I wanted to add an attachment field to my mapping. But as soon the
attachment type is inside, not mapping is set:

I'm using my own php client that communicates with the REST API. The
following code works:

    $indexMapping = array(
    	'file' => array('type' => 'string'),
		'text' => array('type' => 'string', 'store' => 'no'),
    );

As soon as I change the type to attachment, the mapping is no set. Any
ideas?

    $indexMapping = array(
    	'file' => array('type' => 'attachment'),
		'text' => array('type' => 'string', 'store' => 'no'),
    );

I followed in general this documentation:
http://www.elasticsearch.com/docs/elasticsearch/mapping/attachment/

Hi,

If I read your excerpt from log correctly then in fact you did not install
attachment plugin but analysis plugin (
http://www.elasticsearch.com/docs/elasticsearch/index_modules/analysis/icu/
).
If attachment plugin is installed then you will see the following in log
file:
loaded [mapper-attachments]

The plugin jars can be found here:
http://oss.sonatype.org/content/repositories/releases/org/elasticsearch/elasticsearch-mapper-attachments/

Regards,
Lukas

On Fri, Oct 1, 2010 at 2:30 PM, ruflin ruflin@gmail.com wrote:

Hi

I'm trying to use the attachment plugin with the data type. It seems
like installing the problem worked as expected. During starting
elasticsearch shows the following line:

[2010-10-01 14:20:12,577][INFO ][plugins ] [Rebel]
loaded [analysis-icu]

Now I wanted to add an attachment field to my mapping. But as soon the
attachment type is inside, not mapping is set:

I'm using my own php client that communicates with the REST API. The
following code works:

   $indexMapping = array(
           'file' => array('type' => 'string'),
           'text' => array('type' => 'string', 'store' => 'no'),
   );

As soon as I change the type to attachment, the mapping is no set. Any
ideas?

   $indexMapping = array(
           'file' => array('type' => 'attachment'),
           'text' => array('type' => 'string', 'store' => 'no'),
   );

I followed in general this documentation:
http://www.elasticsearch.com/docs/elasticsearch/mapping/attachment/

Hi Lukas

Thanks for your help. Seems like I really piked the wrong one.

I wasn't sure how to install a jar file, but finally I found this
page, where all plugins are listed:
http://elasticsearch.googlecode.com/svn/plugins/

Like this I can run
./bin/plugin install mapper-attachments

Nicolas

On Oct 1, 5:25 pm, Lukáš Vlček lukas.vl...@gmail.com wrote:

Hi,

If I read your excerpt from log correctly then in fact you did not install
attachment plugin but analysis plugin (http://www.elasticsearch.com/docs/elasticsearch/index_modules/analysi...
).
If attachment plugin is installed then you will see the following in log
file:
loaded [mapper-attachments]

The plugin jars can be found here:http://oss.sonatype.org/content/repositories/releases/org/elasticsear...

Regards,
Lukas

On Fri, Oct 1, 2010 at 2:30 PM, ruflin ruf...@gmail.com wrote:

Hi

I'm trying to use the attachment plugin with the data type. It seems
like installing the problem worked as expected. During starting
elasticsearch shows the following line:

[2010-10-01 14:20:12,577][INFO ][plugins ] [Rebel]
loaded [analysis-icu]

Now I wanted to add an attachment field to my mapping. But as soon the
attachment type is inside, not mapping is set:

I'm using my own php client that communicates with the REST API. The
following code works:

   $indexMapping = array(
           'file' => array('type' => 'string'),
           'text' => array('type' => 'string', 'store' => 'no'),
   );

As soon as I change the type to attachment, the mapping is no set. Any
ideas?

   $indexMapping = array(
           'file' => array('type' => 'attachment'),
           'text' => array('type' => 'string', 'store' => 'no'),
   );

I followed in general this documentation:
http://www.elasticsearch.com/docs/elasticsearch/mapping/attachment/