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
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
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:
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
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.