I'm a beginner and I want to use some analyzer in my code to add synonym and to eliminate stopwords but I don't know where I must add it exactly ! (after first query ? or after second query ? ...)
Analyzers are typically already used for the first time when you are indexing your document, e.g. for stopword removal. So adding them only in your query doesn't work. You need to specify them in your field mappings that you can customize. The whole process and how mappings and analyzers are related is described in its own chapter in the ES Definitive Guide.
in what i know ( i know ) have 2 way analyzer.
type 1 : analyzer when you index data to elasticsearch
type 2 : analyzer when you search (analyzer keyword)
Can you explain what you want search in 2 type ?. i cant understand what your code action Sr
~~
i think you want search index called NAME
INDEX called TYPE
AND search word is : DEFINITION
It true ?
Thank you for your answer ! I wanna know plz what do you mean by "the first time when you are indexing your document" ! can you show me plz an exemple of indexing document ?
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.