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 Jae Joo <ja...@gmail.com> on 2020/05/08 16:13:58 UTC

Synonym Graph Filter - how to preserve original

In 8.3, There should be the way to preserve the original terms, but could
not find it.

Does anyone know?

Thanks,

Jae

Re: Synonym Graph Filter - how to preserve original

Posted by ART GALLERY <al...@goretoy.com>.
check out the videos on this website TROO.TUBE don't be such a
sheep/zombie/loser/NPC. Much love!
https://troo.tube/videos/watch/aaa64864-52ee-4201-922f-41300032f219

On Fri, May 8, 2020 at 12:20 PM Erick Erickson <er...@gmail.com> wrote:
>
> Depends on how you define the synonym file.
>
> See: https://lucene.apache.org/solr/guide/6_6/filter-descriptions.html
>
> In particular:
>
> There are two ways to specify synonym mappings:
>
>         • A comma-separated list of words. If the token matches any of the words, then all the words in the list are substituted, which will include the original token.
>
>         • Two comma-separated lists of words with the symbol "⇒" between them. If the token matches any word on the left, then the list on the right is substituted. The original token will not be included unless it is also in the list on the right.
>
> > On May 8, 2020, at 1:10 PM, Jae Joo <ja...@gmail.com> wrote:
> >
> > putting original term in the synonym list works.
> >
> >
> > On Fri, May 8, 2020 at 1:05 PM atin janki <at...@gmail.com> wrote:
> >
> >> Hi Jae,
> >>
> >> Do try to explain your problem with an example. Also share how you are
> >> writing the synonyms file.
> >> Best Regards,
> >> Atin Janki
> >>
> >>
> >> On Fri, May 8, 2020 at 6:14 PM Jae Joo <ja...@gmail.com> wrote:
> >>
> >>> In 8.3, There should be the way to preserve the original terms, but could
> >>> not find it.
> >>>
> >>> Does anyone know?
> >>>
> >>> Thanks,
> >>>
> >>> Jae
> >>>
> >>
>

Re: Synonym Graph Filter - how to preserve original

Posted by Erick Erickson <er...@gmail.com>.
Depends on how you define the synonym file.

See: https://lucene.apache.org/solr/guide/6_6/filter-descriptions.html

In particular:

There are two ways to specify synonym mappings:

	• A comma-separated list of words. If the token matches any of the words, then all the words in the list are substituted, which will include the original token.

	• Two comma-separated lists of words with the symbol "⇒" between them. If the token matches any word on the left, then the list on the right is substituted. The original token will not be included unless it is also in the list on the right.

> On May 8, 2020, at 1:10 PM, Jae Joo <ja...@gmail.com> wrote:
> 
> putting original term in the synonym list works.
> 
> 
> On Fri, May 8, 2020 at 1:05 PM atin janki <at...@gmail.com> wrote:
> 
>> Hi Jae,
>> 
>> Do try to explain your problem with an example. Also share how you are
>> writing the synonyms file.
>> Best Regards,
>> Atin Janki
>> 
>> 
>> On Fri, May 8, 2020 at 6:14 PM Jae Joo <ja...@gmail.com> wrote:
>> 
>>> In 8.3, There should be the way to preserve the original terms, but could
>>> not find it.
>>> 
>>> Does anyone know?
>>> 
>>> Thanks,
>>> 
>>> Jae
>>> 
>> 


Re: Synonym Graph Filter - how to preserve original

Posted by Jae Joo <ja...@gmail.com>.
putting original term in the synonym list works.


On Fri, May 8, 2020 at 1:05 PM atin janki <at...@gmail.com> wrote:

> Hi Jae,
>
> Do try to explain your problem with an example. Also share how you are
> writing the synonyms file.
> Best Regards,
> Atin Janki
>
>
> On Fri, May 8, 2020 at 6:14 PM Jae Joo <ja...@gmail.com> wrote:
>
> > In 8.3, There should be the way to preserve the original terms, but could
> > not find it.
> >
> > Does anyone know?
> >
> > Thanks,
> >
> > Jae
> >
>

Re: Synonym Graph Filter - how to preserve original

Posted by atin janki <at...@gmail.com>.
Hi Jae,

Do try to explain your problem with an example. Also share how you are
writing the synonyms file.
Best Regards,
Atin Janki


On Fri, May 8, 2020 at 6:14 PM Jae Joo <ja...@gmail.com> wrote:

> In 8.3, There should be the way to preserve the original terms, but could
> not find it.
>
> Does anyone know?
>
> Thanks,
>
> Jae
>