How to set the default analyzer


(thinusp) #1

Hey all,

Sorry to bug you with such a stupid question, but I've been trying
everything... I need to set the default analyzer for an index, so that when
new "columns" are added dynamically, they will use the default analyzer.
The website suggests this is possible:

An analyzer is registered under a logical name. It can then be referenced
from mapping definitions or certain APIs. When none are defined, defaults
are used. There is an option to define which analyzers will be used by
default when none can be derived.

The default logical name allows one to configure an analyzer that will be
used both for indexing and for searching APIs. The default_index logical
name can be used to configure a default analyzer that will be used just
when indexing, and the default_search can be used to configure a default
analyzer that will be used just when searching.

This is exactly what I want to do... Now, I've tried setting every
possible combination of the following:

index.analysis.analyzer.default: snowball
index.analyzer.default: snowball
index.analysis.default: snowball
etc.

Can someone please point me towards the correct way of doing this?

Thank you kindly. Regards,
Thinus


(Igor Motov) #2

It should be index.analysis.analyzer.default.type: snowball

On Tuesday, April 24, 2012 9:30:15 AM UTC-4, Thinus Prinsloo wrote:

Hey all,

Sorry to bug you with such a stupid question, but I've been trying
everything... I need to set the default analyzer for an index, so that when
new "columns" are added dynamically, they will use the default analyzer.
The website suggests this is possible:

An analyzer is registered under a logical name. It can then be referenced
from mapping definitions or certain APIs. When none are defined, defaults
are used. There is an option to define which analyzers will be used by
default when none can be derived.

The default logical name allows one to configure an analyzer that will be
used both for indexing and for searching APIs. The default_index logical
name can be used to configure a default analyzer that will be used just
when indexing, and the default_search can be used to configure a default
analyzer that will be used just when searching.

This is exactly what I want to do... Now, I've tried setting every
possible combination of the following:

index.analysis.analyzer.default: snowball
index.analyzer.default: snowball
index.analysis.default: snowball
etc.

Can someone please point me towards the correct way of doing this?

Thank you kindly. Regards,
Thinus


(thinusp) #3

Igor,

You hare my hero for today. Thank you so much.

Regards,
Thinus

On Tue, Apr 24, 2012 at 3:44 PM, Igor Motov imotov@gmail.com wrote:

It should be index.analysis.analyzer.default.type: snowball

On Tuesday, April 24, 2012 9:30:15 AM UTC-4, Thinus Prinsloo wrote:

Hey all,

Sorry to bug you with such a stupid question, but I've been trying
everything... I need to set the default analyzer for an index, so that when
new "columns" are added dynamically, they will use the default analyzer.
The website suggests this is possible:

An analyzer is registered under a logical name. It can then be referenced
from mapping definitions or certain APIs. When none are defined, defaults
are used. There is an option to define which analyzers will be used by
default when none can be derived.

The default logical name allows one to configure an analyzer that will
be used both for indexing and for searching APIs. The default_index logical
name can be used to configure a default analyzer that will be used just
when indexing, and the default_search can be used to configure a default
analyzer that will be used just when searching.

This is exactly what I want to do... Now, I've tried setting every
possible combination of the following:

index.analysis.analyzer.**default: snowball
index.analyzer.default: snowball
index.analysis.default: snowball
etc.

Can someone please point me towards the correct way of doing this?

Thank you kindly. Regards,
Thinus

--
Thinus Prinsloo
E-mail: thinus.prinsloo@gmail.com
Cell: +27 82 339 2226


(system) #4