[ https://issues.apache.org/jira/browse/SOLR-6878?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Timothy Potter updated SOLR-6878: --------------------------------- Attachment: SOLR-6878.patch Here is an updated patch that implements the idea Hossman laid out in his comment. Basically, if the client sends in a list instead of a map, the expand=true logic is applied as the time of update, i.e. this is syntactic sugar for building up the mappings from a list of symmetric synonyms. There's no need to support a list for expand=false because that is simply a mapping of all the terms to the last term in the list, which is already supported by the API. Thus, expand=true is implied when the update request contains a list and not a map. > solr.ManagedSynonymFilterFactory all-to-all synonym switch (aka. expand) > ------------------------------------------------------------------------ > > Key: SOLR-6878 > URL: https://issues.apache.org/jira/browse/SOLR-6878 > Project: Solr > Issue Type: Improvement > Components: Schema and Analysis > Affects Versions: 4.10.2 > Reporter: Tomasz Sulkowski > Assignee: Timothy Potter > Labels: ManagedSynonymFilterFactory, REST, SOLR > Attachments: SOLR-6878.patch, SOLR-6878.patch > > > Hi, > After switching from SynonymFilterFactory to ManagedSynonymFilterFactory I > have found out that there is no way to set an all-to-all synonyms relation. > Basically (judgind from google search) there is a need for "expand" > functionality switch (known from SynonymFilterFactory) which will treat all > synonyms with its keyword as equal. > For example: if we define a "car":["wagen","ride"] relation it would > translate a query that includes one of the synonyms or keyword to "car or > wagen or ride" independently of which word was used from those three. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org