Search Analyzer not working!


(Saurabh) #1

hi,

i am using search_analyzer : "myanalyzer" in the mappings. "myanalyzer" is
of type standard with custom stop words.
While searching i am not providing any analyzer(given that it automatically
uses "myanalyzer", as provided in mappings), but the analyzer doesn't work.

Like i searched for "apple" i got some hits, but searching for "Apple"
isn't giving any hits.

Can anyone explain this?


(David Pilato) #2

Do you have a curl recreation ? How do you search (query string ? Text ? Term ?)

David :wink:
Twitter : @dadoonet / @elasticsearchfr

Le 3 juil. 2012 à 16:53, Saurabh saurabh.k1510@gmail.com a écrit :

hi,

i am using search_analyzer : "myanalyzer" in the mappings. "myanalyzer" is of type standard with custom stop words.
While searching i am not providing any analyzer(given that it automatically uses "myanalyzer", as provided in mappings), but the analyzer doesn't work.

Like i searched for "apple" i got some hits, but searching for "Apple" isn't giving any hits.

Can anyone explain this?


(Saurabh) #3

i am creating query using QueryBuilder class and searching using
SearchRequestBuilder.

On Tue, Jul 3, 2012 at 9:24 PM, David Pilato david@pilato.fr wrote:

Do you have a curl recreation ? How do you search (query string ? Text ?
Term ?)

David :wink:
Twitter : @dadoonet / @elasticsearchfr

Le 3 juil. 2012 à 16:53, Saurabh saurabh.k1510@gmail.com a écrit :

hi,

i am using search_analyzer : "myanalyzer" in the mappings. "myanalyzer"
is of type standard with custom stop words.
While searching i am not providing any analyzer(given that it
automatically uses "myanalyzer", as provided in mappings), but the analyzer
doesn't work.

Like i searched for "apple" i got some hits, but searching for "Apple"
isn't giving any hits.

Can anyone explain this?

--
Saurabh Kumar
M.Sc (Mathematics) B.E (Computer Science)
Birla Institute of Technology and Science-Pilani


(system) #4