I have applied Elision Token Filter while indexing and searching,i
created an index for “l’avion” and searched for "avion" and got the
hits as “l’avion”.
this is correct and i believe that analyzer are done correctly for
Elision.
but when i search for “l’avion” i got zero hits.i was expecting one
hits.because i am searching the same which i indexed.
why i couldn't get the hit? if i have misunderstood the concept then
make it correct.
If the search analyzer is configured with the same elision filter, then it will be applied when searching as well, but only on queries that do analysis on the search text (query_string, text, field). Which query did you execute?
On Friday, February 3, 2012 at 8:22 AM, sam wrote:
Hi
I have applied Elision Token Filter while indexing and searching,i
created an index for “l’avion” and searched for "avion" and got the
hits as “l’avion”.
this is correct and i believe that analyzer are done correctly for
Elision.
but when i search for “l’avion” i got zero hits.i was expecting one
hits.because i am searching the same which i indexed.
why i couldn't get the hit? if i have misunderstood the concept then
make it correct.
Here I have putting mapping to configured the index_analyzer and
search_analyzer,so it is not necessary to explicit define analyzer
when doing a search.
In my case which i pointed out in above question i have used
index_analyzer and search_analyzer both are same when index is
created.for searching i have used following search query:
If the search analyzer is configured with the same elision filter, then it will be applied when searching as well, but only on queries that do analysis on the search text (query_string, text, field). Which query did you execute?
On Friday, February 3, 2012 at 8:22 AM, sam wrote:
Hi
I have applied Elision Token Filter while indexing and searching,i
created an index for “l’avion” and searched for "avion" and got the
hits as “l’avion”.
this is correct and i believe that analyzer are done correctly for
Elision.
but when i search for “l’avion” i got zero hits.i was expecting one
hits.because i am searching the same which i indexed.
why i couldn't get the hit? if i have misunderstood the concept then
make it correct.
Here I have putting mapping to configured the index_analyzer and
search_analyzer,so it is not necessary to explicit define analyzer
when doing a search.
In my case which i pointed out in above question i have used
index_analyzer and search_analyzer both are same when index is
created.for searching i have used following search query:
QueryStringQueryBuilder querystring = new
QueryStringQueryBuilder(searchData);
SearchResponse searchResponse =
client.prepareSearch(indexName).setTypes(indexType).setSearchType(SearchType.DEFAULT)
.setQuery(querystring.field("Description")).setExplain(true).setSize(100).execute().actionGet();
If the search analyzer is configured with the same elision filter, then it will be applied when searching as well, but only on queries that do analysis on the search text (query_string, text, field). Which query did you execute?
On Friday, February 3, 2012 at 8:22 AM, sam wrote:
Hi
I have applied Elision Token Filter while indexing and searching,i
created an index for “l’avion” and searched for "avion" and got the
hits as “l’avion”.
this is correct and i believe that analyzer are done correctly for
Elision.
but when i search for “l’avion” i got zero hits.i was expecting one
hits.because i am searching the same which i indexed.
why i couldn't get the hit? if i have misunderstood the concept then
make it correct.
and previoulsy i was not giving analyzer name for searching.
I have read following document Elasticsearch Platform — Find real-time answers at scale | Elastic
that say that defining the mapping there is no need to define
explicit mapping for both cases index and search, and I have applied
this scheme. but my case it's working in indexing but not working on
searching. I needed to explicitly define search analyzer when i
searched for the given problem in this post i.e. I'avion .
What could be the reason that mapping is not applied for searching?
Here I have putting mapping to configured the index_analyzer and
search_analyzer,so it is not necessary to explicit define analyzer
when doing a search.
In my case which i pointed out in above question i have used
index_analyzer and search_analyzer both are same when index is
created.for searching i have used following search query:
If the search analyzer is configured with the same elision filter, then it will be applied when searching as well, but only on queries that do analysis on the search text (query_string, text, field). Which query did you execute?
On Friday, February 3, 2012 at 8:22 AM, sam wrote:
Hi
I have applied Elision Token Filter while indexing and searching,i
created an index for “l’avion” and searched for "avion" and got the
hits as “l’avion”.
this is correct and i believe that analyzer are done correctly for
Elision.
but when i search for “l’avion” i got zero hits.i was expecting one
hits.because i am searching the same which i indexed.
why i couldn't get the hit? if i have misunderstood the concept then
make it correct.
So now the code you posted is not the one you really used? This is annoying. If you want, I can answer the question you posted, but create a gist similar to what I created that exhibits what you expect, and I can have a look at it.
On Thursday, February 9, 2012 at 7:43 AM, sam wrote:
Thanks for reply.yes it's working. I figured out the problem, i added
logical analyzer name for searching, below is the used code:
and previoulsy i was not giving analyzer name for searching.
I have read following document Elasticsearch Platform — Find real-time answers at scale | Elastic
that say that defining the mapping there is no need to define
explicit mapping for both cases index and search, and I have applied
this scheme. but my case it's working in indexing but not working on
searching. I needed to explicitly define search analyzer when i
searched for the given problem in this post i.e. I'avion .
What could be the reason that mapping is not applied for searching?
Here I have putting mapping to configured the index_analyzer and
search_analyzer,so it is not necessary to explicit define analyzer
when doing a search.
In my case which i pointed out in above question i have used
index_analyzer and search_analyzer both are same when index is
created.for searching i have used following search query:
If the search analyzer is configured with the same elision filter, then it will be applied when searching as well, but only on queries that do analysis on the search text (query_string, text, field). Which query did you execute?
On Friday, February 3, 2012 at 8:22 AM, sam wrote:
Hi
I have applied Elision Token Filter while indexing and searching,i
created an index for “l’avion” and searched for "avion" and got the
hits as “l’avion”.
this is correct and i believe that analyzer are done correctly for
Elision.
but when i search for “l’avion” i got zero hits.i was expecting one
hits.because i am searching the same which i indexed.
why i couldn't get the hit? if i have misunderstood the concept then
make it correct.
sorry for inconvenient.i figured out the problem, i added logical
analyzer name for searching,i have following gist :
and previoulsy i was not giving analyzer name for searching.
I have read following document Elasticsearch Platform — Find real-time answers at scale | Elastic...
that say that defining the mapping there is no need to define
explicit mapping for both cases index and search, and I have applied
this scheme. but my case it's working in indexing but not working on
searching. I needed to explicitly define search analyzer when i
searched for the given problem in this post i.e. I'avion .
What could be the reason that mapping is not applied for searching?
So now the code you posted is not the one you really used? This is annoying. If you want, I can answer the question you posted, but create a gist similar to what I created that exhibits what you expect, and I can have a look at it.
On Thursday, February 9, 2012 at 7:43 AM, sam wrote:
Thanks for reply.yes it's working. I figured out the problem, i added
logical analyzer name for searching, below is the used code:
and previoulsy i was not giving analyzer name for searching.
I have read following documenthttp://www.elasticsearch.org/guide/reference/mapping/root-object-type...
that say that defining the mapping there is no need to define
explicit mapping for both cases index and search, and I have applied
this scheme. but my case it's working in indexing but not working on
searching. I needed to explicitly define search analyzer when i
searched for the given problem in this post i.e. I'avion .
What could be the reason that mapping is not applied for searching?
Here I have putting mapping to configured the index_analyzer and
search_analyzer,so it is not necessary to explicit define analyzer
when doing a search.
In my case which i pointed out in above question i have used
index_analyzer and search_analyzer both are same when index is
created.for searching i have used following search query:
If the search analyzer is configured with the same elision filter, then it will be applied when searching as well, but only on queries that do analysis on the search text (query_string, text, field). Which query did you execute?
On Friday, February 3, 2012 at 8:22 AM, sam wrote:
Hi
I have applied Elision Token Filter while indexing and searching,i
created an index for “l’avion” and searched for "avion" and got the
hits as “l’avion”.
this is correct and i believe that analyzer are done correctly for
Elision.
but when i search for “l’avion” i got zero hits.i was expecting one
hits.because i am searching the same which i indexed.
why i couldn't get the hit? if i have misunderstood the concept then
make it correct.
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.