I created taxonomy vocabulary with listed terms. Example terms: Shop, House, Building

Then, in my custom content type, I added a field as Taxonomy terms and select the vocabulary created.

I want to create synonyms to each term in the vocabulary. Using views, I also want to search either of the term or its synonyms and the result will display.

How can I achieve this using the synonyms module?

Thanks!

Comments

johnreytanquinco created an issue. See original summary.

cilefen’s picture

Project: Drupal core » Synonyms
Version: 8.2.x-dev » 8.x-1.x-dev
Component: other » Code
Category: Task » Support request

You ask in the synonyms module queue.

bucefal91’s picture

hello!

You should be able to have it done with synonyms friendly exposed views filter.

Do a relationship from your node to your taxonomy term and then add a "Synonyms of [your-vocabulary]" exposed filter.

huma2000’s picture

Same here,seems that I cannot use it in the same way than the 7.x version, cannot select my synonyms field when configuring the relationship. Any help?

Thanks

bucefal91’s picture

Guys, I am afraid I will need more info from you in order to be able to help you in any way. Give me the detailed specs of your view and what you're trying to achieve.

huma2000’s picture

Ok, the plan is building a taxonomy with the different medications used in a practice with the synonyms. this are the steps I did:
-Installed synonyms module
-Create a taxonomy called Medications
-Create a field called Synonyms
-Go to synonyms configuration page and select my taxonomy
-Click add and search for my synonyms field
-Field is not there, so not sure what to do next.

Thanks

bucefal91’s picture

Ok, that's much better than your original input :)

What field type is your Synonyms field? You are supposed to go to Admin -> Structure -> Synonyms. On that page you are to choose a row that reads Taxonomy term in Entity Type column and name of your vocabulary (presumably it should be Medications per your description) on the Bundle column. Go to either "select" or "autocomplete" for that row.

On the next page click on "Add synonym configuration" button. Lastly, there you should see "Synonyms provider" dropdown and there should be your Synonyms field. You should end up on URL like admin/structure/synonyms/taxonomy_term/medications/synonyms.behavior.select/add or something similar.

huma2000’s picture

That's what I was expecting, but my field was not appearing.

I fond that I need to clean the cache before the module detect the new fields.

Thanks for the help!

rar9’s picture

I want to have different Synonyms for the same taxonomy the the user can later Search for.

Eg.
Original Taxonomy Term like "Computer"
- Synonym 1 like "PC"
- Synonym 2 like "Laptop"
- Synonym 3 like "Minicomputer"
- Synonym 4 like "Mainframe"

How would I do this with this module?

Under Drupal 6 I had a simple text box where I added the required Synonym in each line.
The User could then also search for the Synonym and gets show the right Original Taxonomy Term

bucefal91’s picture

@Rar9, yes, the only problem is that search integration is not yet implemented in Synonyms 8.x. You can file a separate feature request for your issue and I'll try to implement it when I have time.

bucefal91’s picture

Status: Active » Fixed

I am marking this issue as fixed for absence of activity.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

devad’s picture

Title: How does synonyms module works in Drupal 8 » How does synonyms module works in Drupal 8+
Version: 8.x-1.x-dev » 2.0.x-dev

A new official Synonyms guide at Drupal.org can help.