Re: Case Insensitive Search for StringField

2018-05-27 Thread Chellasamy G
keyword tokenizer + lowercase filter resolved my problem. Thank you all, Satyan On Sat, 26 May 2018 04:03:32 +0530 Ahmet Arslan wrote Hi, string_ci type could be constructed from: keyword tokenizer + lowercase filter + may be trim filter. Ah

Re: Case Insensitive Search for StringField

2018-05-25 Thread Michael Sokolov
It's hard to help you because you haven't really explained what the problem is. You say you must use StringField, which is a non analysed field, but you also want to lower case the text values in the field, which requires analysis. I would suggest that you probably want to use TextField with a low

Re: Case Insensitive Search for StringField

2018-05-25 Thread Ahmet Arslan
Hi, string_ci type could be constructed from: keyword tokenizer + lowercase filter + may be trim filter. Ahmet On Friday, May 25, 2018, 1:50:19 PM GMT+3, Chellasamy G wrote: Hi Team, Kindly help me out with this problem. Thanks, Satyan On Wed, 23 May 2018 15:01:3

Re: Case Insensitive Search for StringField

2018-05-25 Thread Chellasamy G
Hi Team, Kindly help me out with this problem. Thanks, Satyan On Wed, 23 May 2018 15:01:39 +0530 Chellasamy G wrote Hi, Thanks for the reply. Actually I need to implement it for StringField which is non-analyzed. So,

Re: Case Insensitive Search for StringField

2018-05-23 Thread Chellasamy G
Hi, Thanks for the reply. Actually I need to implement it for StringField which is non-analyzed. So, if I am not wrong I can't add the analyzer for StringField. My scenario is something similar to the one discussed in the below thread, https://discuss.elastic.co/t/es-5-0-case-insensi

Re: Case Insensitive Search for StringField

2018-05-22 Thread Adrien Grand
Hi Satyan, You need to add a LowercaseTokenFilter to your analysis chain. The way to do it depends on how you are building your analyzer today (pre-built analyzer, extending Analyzer or using CustomAnalyzer). This will preserve the original case in field values because lowercasing will only be app

Case Insensitive Search for StringField

2018-05-22 Thread Chellasamy G
Hi, I can't find any way to perform case insensitive search on StringField. Please help me out. i.e If the field value is "Flying Robots", then the phrases "flying robots", "fLying RObots" etc should match the value. I also need the original case of the field value to be preserved