How to implement analyzer?


(Sam-4) #1

I configured analyzer in elasticsearch.yml with below define
configuration :

index :
analysis :
analyzer :
default :
tokenizer:lowercase

After the setting I searched the string "r*" which gives me the doc
which contains Rahul and ramesh.
Then I searched for "R*" This gave me the 0 hit.

I want to analyzed the querystring text with following settings.I
have confusion regarding,using analyzer in index.


(Clinton Gormley) #2

On Tue, 2011-01-04 at 03:18 -0800, sam wrote:

I configured analyzer in elasticsearch.yml with below define
configuration :

index :
analysis :
analyzer :
default :
tokenizer:lowercase

After the setting I searched the string "r*" which gives me the doc
which contains Rahul and ramesh.
Then I searched for "R*" This gave me the 0 hit.

How are you searching?

It sounds like you're doing a term search, not a query string search

clint


(Sam-4) #3

basically i am using wildcardQuery.when i am using queryString it
gives the same value hits using small letter and caps.i want know how
analyzer works.

On Jan 4, 4:29 pm, Clinton Gormley clin...@iannounce.co.uk wrote:

On Tue, 2011-01-04 at 03:18 -0800, sam wrote:

I configured analyzer in elasticsearch.yml with below define
configuration :

index :
analysis :
analyzer :
default :
tokenizer:lowercase

After the setting I searched the string "r*" which gives me the doc
which contains Rahul and ramesh.
Then I searched for "R*" This gave me the 0 hit.

How are you searching?

It sounds like you're doing a term search, not a query string search

clint


(system) #4