Contructing Mappings

When defining indexing in in elasticsearch.yml I am wanting to index one
field for one type differently for one of the others.

This is how my elasticsearch.yml file currently looks:

Index Settings

index:
bookshelf:
types:
book:
mappings:

      title: {analyzer: customAnalyzer}

analysis:
analyzer:
# set standard analyzer with no stop words as the default for both
indexing and searching
default:
type: standard
stopwords: none
customAnalyzer:
type: custom
tokenizer: nGramTokenizer
filter: [lowercase,stopWordsFilter,asciifolding]
tokenizer:
nGramTokenizer:
type: nGram
min_gram: 1
max_gram: 2
filter:
stopWordsFilter:
type: stop
stopwords: none

--

And what is your question?

May I suggest you read:
Elasticsearch Platform — Find real-time answers at scale | Elastic
http://www.elasticsearch.org/guide/reference/api/admin-indices-put-mapping.html
?

David

Le 4 octobre 2012 à 14:06, My Head Hurts mathieson10@gmail.com a écrit :

When defining indexing in in elasticsearch.yml I am wanting to index one field
for one type differently for one of the others.

This is how my elasticsearch.yml file currently looks:

Index Settings

index:
bookshelf:
types:
book:
mappings:

       title: {analyzer: customAnalyzer}

analysis:
analyzer:
# set standard analyzer with no stop words as the default for both
indexing and searching
default:
type: standard
stopwords: none
customAnalyzer:
type: custom
tokenizer: nGramTokenizer
filter: [lowercase,stopWordsFilter,asciifolding]
tokenizer:
nGramTokenizer:
type: nGram
min_gram: 1
max_gram: 2
filter:
stopWordsFilter:
type: stop
stopwords: none

--

--
David Pilato
http://www.scrutmydocs.org/
http://dev.david.pilato.fr/
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

--

Hi David

Thanks for your quick response (I was actually expecting this to be ignored
since it isn't much of a question).

I have re-asked the question herehttps://groups.google.com/forum/?fromgroups=#!topic/elasticsearch/TSSBZUPBK_4if you wouldn't mind moving our discussion into there?

In regards to the link - I have read that documentation but I am using the
Java Client so I think I need to specify this information in the
elasticsearch.yml file which I I do not think I am doing correctly at the
moment.

On Thursday, 4 October 2012 14:15:11 UTC+2, David Pilato wrote:

And what is your question?

May I suggest you read:
Elasticsearch Platform — Find real-time answers at scale | Elastic ?

David

Le 4 octobre 2012 à 14:06, My Head Hurts <mathi...@gmail.com <javascript:>>
a écrit :

When defining indexing in in elasticsearch.yml I am wanting to index one
field for one type differently for one of the others.

This is how my elasticsearch.yml file currently looks:

Index Settings

index:
bookshelf:
types:
book:
mappings:

      title: {analyzer: customAnalyzer} 

analysis:
analyzer:
# set standard analyzer with no stop words as the default for both
indexing and searching
default:
type: standard
stopwords: none
customAnalyzer:
type: custom
tokenizer: nGramTokenizer
filter: [lowercase,stopWordsFilter,asciifolding]
tokenizer:
nGramTokenizer:
type: nGram
min_gram: 1
max_gram: 2
filter:
stopWordsFilter:
type: stop
stopwords: none

--

--
David Pilato
http://www.scrutmydocs.org/
http://dev.david.pilato.fr/
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

--