You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Aman Deep Singh <am...@gmail.com> on 2017/08/09 12:34:07 UTC

Case sensitive synonym value

Hi,
I'm trying to use the ManagedSynonyms with *ignoreCase=true*
It is working fine for the identifying part but the problem comes in
synonym value
Suppose i have a synonym *iwatch ==>appleWatch,iWatch*
If the user query is *iwatch (in any case)*  it was identifying the synonym
and replace the token with *applewatch and iwatch*  (in lowercase),which i
didn't want
I need the synonyms to comes with the same case what i have configured
i.e. *appleWatch and iWatch*
Any idea on how to so that .

Thanks,
Aman Deep Singh

Re: Case sensitive synonym value

Posted by Aman Deep Singh <am...@gmail.com>.
Hi all,
Any update on this issue.
-Aman

On 10-Aug-2017 8:27 AM, "Aman Deep Singh" <am...@gmail.com> wrote:

> Yes,
> Ignore case is set to true and it is working fine
>
>
> On 10-Aug-2017 12:43 AM, "Erick Erickson" <er...@gmail.com> wrote:
>
> You set ignoreCase="true" though, right?
>
> On Wed, Aug 9, 2017 at 8:39 AM, Aman Deep Singh
> <am...@gmail.com> wrote:
> > Hi Erick,
> > I tried even before going to lowercase factory value is in lowercase
> >
> > this is the analysis tab result for the query  iwatch
> > where {"iwatch":["iWatch","appleWatch"]} is configured in managed
> synonym
> > ST
> > iwatch
> > SF
> > *applewatch*
> > *iwatch*
> > PRF
> > applewatch
> > iwatch
> > PRF
> > applewatch
> > iwatch
> > WDF
> > applewatch
> > iwatch
> > LCF
> > applewatch
> > iwatch
> >
> > Thanks,
> > Aman Deep Singh
> >
> > On 09-Aug-2017 8:46 PM, "Erick Erickson" <er...@gmail.com>
> wrote:
> >
> >> Admin/analysis is a good place to start figuring this out. For
> >> instance, do you have lowerCaseFilter configured in your analysis
> >> chain somewhere that's doing the conversion?
> >>
> >> Best,
> >> Erick
> >>
> >> On Wed, Aug 9, 2017 at 5:34 AM, Aman Deep Singh
> >> <am...@gmail.com> wrote:
> >> > Hi,
> >> > I'm trying to use the ManagedSynonyms with *ignoreCase=true*
> >> > It is working fine for the identifying part but the problem comes in
> >> > synonym value
> >> > Suppose i have a synonym *iwatch ==>appleWatch,iWatch*
> >> > If the user query is *iwatch (in any case)*  it was identifying the
> >> synonym
> >> > and replace the token with *applewatch and iwatch*  (in
> lowercase),which
> >> i
> >> > didn't want
> >> > I need the synonyms to comes with the same case what i have configured
> >> > i.e. *appleWatch and iWatch*
> >> > Any idea on how to so that .
> >> >
> >> > Thanks,
> >> > Aman Deep Singh
> >>
>
>
>

Re: Case sensitive synonym value

Posted by Aman Deep Singh <am...@gmail.com>.
Yes,
Ignore case is set to true and it is working fine


On 10-Aug-2017 12:43 AM, "Erick Erickson" <er...@gmail.com> wrote:

You set ignoreCase="true" though, right?

On Wed, Aug 9, 2017 at 8:39 AM, Aman Deep Singh
<am...@gmail.com> wrote:
> Hi Erick,
> I tried even before going to lowercase factory value is in lowercase
>
> this is the analysis tab result for the query  iwatch
> where {"iwatch":["iWatch","appleWatch"]} is configured in managed synonym
> ST
> iwatch
> SF
> *applewatch*
> *iwatch*
> PRF
> applewatch
> iwatch
> PRF
> applewatch
> iwatch
> WDF
> applewatch
> iwatch
> LCF
> applewatch
> iwatch
>
> Thanks,
> Aman Deep Singh
>
> On 09-Aug-2017 8:46 PM, "Erick Erickson" <er...@gmail.com> wrote:
>
>> Admin/analysis is a good place to start figuring this out. For
>> instance, do you have lowerCaseFilter configured in your analysis
>> chain somewhere that's doing the conversion?
>>
>> Best,
>> Erick
>>
>> On Wed, Aug 9, 2017 at 5:34 AM, Aman Deep Singh
>> <am...@gmail.com> wrote:
>> > Hi,
>> > I'm trying to use the ManagedSynonyms with *ignoreCase=true*
>> > It is working fine for the identifying part but the problem comes in
>> > synonym value
>> > Suppose i have a synonym *iwatch ==>appleWatch,iWatch*
>> > If the user query is *iwatch (in any case)*  it was identifying the
>> synonym
>> > and replace the token with *applewatch and iwatch*  (in
lowercase),which
>> i
>> > didn't want
>> > I need the synonyms to comes with the same case what i have configured
>> > i.e. *appleWatch and iWatch*
>> > Any idea on how to so that .
>> >
>> > Thanks,
>> > Aman Deep Singh
>>

Re: Case sensitive synonym value

Posted by Erick Erickson <er...@gmail.com>.
You set ignoreCase="true" though, right?

On Wed, Aug 9, 2017 at 8:39 AM, Aman Deep Singh
<am...@gmail.com> wrote:
> Hi Erick,
> I tried even before going to lowercase factory value is in lowercase
>
> this is the analysis tab result for the query  iwatch
> where {"iwatch":["iWatch","appleWatch"]} is configured in managed synonym
> ST
> iwatch
> SF
> *applewatch*
> *iwatch*
> PRF
> applewatch
> iwatch
> PRF
> applewatch
> iwatch
> WDF
> applewatch
> iwatch
> LCF
> applewatch
> iwatch
>
> Thanks,
> Aman Deep Singh
>
> On 09-Aug-2017 8:46 PM, "Erick Erickson" <er...@gmail.com> wrote:
>
>> Admin/analysis is a good place to start figuring this out. For
>> instance, do you have lowerCaseFilter configured in your analysis
>> chain somewhere that's doing the conversion?
>>
>> Best,
>> Erick
>>
>> On Wed, Aug 9, 2017 at 5:34 AM, Aman Deep Singh
>> <am...@gmail.com> wrote:
>> > Hi,
>> > I'm trying to use the ManagedSynonyms with *ignoreCase=true*
>> > It is working fine for the identifying part but the problem comes in
>> > synonym value
>> > Suppose i have a synonym *iwatch ==>appleWatch,iWatch*
>> > If the user query is *iwatch (in any case)*  it was identifying the
>> synonym
>> > and replace the token with *applewatch and iwatch*  (in lowercase),which
>> i
>> > didn't want
>> > I need the synonyms to comes with the same case what i have configured
>> > i.e. *appleWatch and iWatch*
>> > Any idea on how to so that .
>> >
>> > Thanks,
>> > Aman Deep Singh
>>

Re: Case sensitive synonym value

Posted by Aman Deep Singh <am...@gmail.com>.
Hi Erick,
I tried even before going to lowercase factory value is in lowercase

this is the analysis tab result for the query  iwatch
where {"iwatch":["iWatch","appleWatch"]} is configured in managed synonym
ST
iwatch
SF
*applewatch*
*iwatch*
PRF
applewatch
iwatch
PRF
applewatch
iwatch
WDF
applewatch
iwatch
LCF
applewatch
iwatch

Thanks,
Aman Deep Singh

On 09-Aug-2017 8:46 PM, "Erick Erickson" <er...@gmail.com> wrote:

> Admin/analysis is a good place to start figuring this out. For
> instance, do you have lowerCaseFilter configured in your analysis
> chain somewhere that's doing the conversion?
>
> Best,
> Erick
>
> On Wed, Aug 9, 2017 at 5:34 AM, Aman Deep Singh
> <am...@gmail.com> wrote:
> > Hi,
> > I'm trying to use the ManagedSynonyms with *ignoreCase=true*
> > It is working fine for the identifying part but the problem comes in
> > synonym value
> > Suppose i have a synonym *iwatch ==>appleWatch,iWatch*
> > If the user query is *iwatch (in any case)*  it was identifying the
> synonym
> > and replace the token with *applewatch and iwatch*  (in lowercase),which
> i
> > didn't want
> > I need the synonyms to comes with the same case what i have configured
> > i.e. *appleWatch and iWatch*
> > Any idea on how to so that .
> >
> > Thanks,
> > Aman Deep Singh
>

Re: Case sensitive synonym value

Posted by Erick Erickson <er...@gmail.com>.
Admin/analysis is a good place to start figuring this out. For
instance, do you have lowerCaseFilter configured in your analysis
chain somewhere that's doing the conversion?

Best,
Erick

On Wed, Aug 9, 2017 at 5:34 AM, Aman Deep Singh
<am...@gmail.com> wrote:
> Hi,
> I'm trying to use the ManagedSynonyms with *ignoreCase=true*
> It is working fine for the identifying part but the problem comes in
> synonym value
> Suppose i have a synonym *iwatch ==>appleWatch,iWatch*
> If the user query is *iwatch (in any case)*  it was identifying the synonym
> and replace the token with *applewatch and iwatch*  (in lowercase),which i
> didn't want
> I need the synonyms to comes with the same case what i have configured
> i.e. *appleWatch and iWatch*
> Any idea on how to so that .
>
> Thanks,
> Aman Deep Singh