Re: Re: Re: Re: Handling overlapping synonyms

2020-01-20 Thread Audrey Lorberfeld - audrey.lorberf...@ibm.com
Hm, I'm not sure what you mean, but I am pretty new to Solr. Apologies! On 1/20/20, 12:01 PM, "fiedzia" wrote: >From my understanding, if you want regional sales manager to be indexed as both director of sales and area manager, you >would have to type: > >Regional sales ma

Re: Re: Re: Handling overlapping synonyms

2020-01-20 Thread fiedzia
>From my understanding, if you want regional sales manager to be indexed as both director of sales and area manager, you >would have to type: > >Regional sales manager -> director of sales, area manager that works for searching, but because everything is in the same position, searching for "dir

Re: Re: Re: Handling overlapping synonyms

2020-01-20 Thread Audrey Lorberfeld - audrey.lorberf...@ibm.com
From my understanding, if you want regional sales manager to be indexed as both director of sales and area manager, you would have to type: Regional sales manager -> director of sales, area manager I do not believe you can chain synonyms. Re: bigrams/trigrams, I was more interested in you want

Re: Re: Handling overlapping synonyms

2020-01-20 Thread fiedzia
> what is the reasoning behind adding the bigrams and trigrams manually like that? Maybe if we knew the end goal, we could figure out a different strategy. Happy that at least the matching is working now! I have large amount of synonyms and keep adding new ones, some of them partially overlap. It

Re: Re: Handling overlapping synonyms

2020-01-17 Thread Audrey Lorberfeld - audrey.lorberf...@ibm.com
Hmm what is the reasoning behind adding the bigrams and trigrams manually like that? Maybe if we knew the end goal, we could figure out a different strategy. Happy that at least the matching is working now! On 1/17/20, 10:28 AM, "fiedzia" wrote: > Doing it the other way (new york cit

Re: Handling overlapping synonyms

2020-01-17 Thread fiedzia
> Doing it the other way (new york city -> new_york_city, new_york) makes more sense, Just checked it, that way does the matching as expected, but highlighting is wrong ("new york: query matches "new york city" as it should, but also highlights all of it) -- Sent from: https://lucene.472066.n3.

Re: Handling overlapping synonyms

2020-01-17 Thread fiedzia
> If you instead write "new york => new_york, new_york_city" it should work I can't do that, as that would turn "new york" into "new york_city", which is not what I want. Doing it the other way (new york city -> new_york_city, new_york) makes more sense, though I expect this to get positions wrong

Re: Handling overlapping synonyms

2020-01-17 Thread Audrey Lorberfeld - audrey.lorberf...@ibm.com
If you instead write "new york => new_york, new_york_city" it should work (https://doc.lucidworks.com/fusion/3.1/Collections/Synonyms-Files.html) On 1/17/20, 6:29 AM, "fiedzia" wrote: Having synonyms defined for new york -> new_york new york city -> new_york_city I'd

Handling overlapping synonyms

2020-01-17 Thread fiedzia
Having synonyms defined for new york -> new_york new york city -> new_york_city I'd like the phrase new york city to be indexed as both, but SynonymGraphFilter picks only one. Is there a way around that? -- Maciej Dziardziel fied...@gmail.com -- Sent from: https://lucene.472066.n3.nabble.co