Project:Synonyms
Version:6.x-1.0
Component:Documentation
Category:task
Priority:normal
Assigned:Unassigned
Status:reviewed & tested by the community

Issue Summary

Perhaps I'm missing a crucial step?

Current setup:
D6.12
Taxonomy is enabled (am not using Categories)
Synonyms 6.x-1.0
Taxonomy_vtn
Taxonomy menu
Taxonomy hide
Taxonomy term permissions

I'm not sure what else you'd need to know about the installation.

In my taxonomy, I have a vocabulary:
"Trades"
Carpenter
Rough
Finish
Mason
Stonemason
Concrete

I want to use numbers as well, b/c the industry has a standardized coding system to label all the various trades and subtrades and the users should be able to search for that code as well as the word. So I thought that it would work to install Synonyms and then put that code number (06 = Carpenter) into the synonyms box for each term. It's not searchable. I enabled Search and Carpenter brings up the node that has been tagged with Carpenter. But 06 gives no result.

What am I missing?

Thanks!

-Lindsay

Comments

#1

Seeing as this module changes the way search indexes are built, I imagine that when it's installed on a pre-existing site it's likely that
you may have to flush and rebuild the search index to see results.

You should do that from the search admin options, then run cron.php a few times (until it loads quickly).

If this is the issue, perhaps instructions should be added to the project.

#2

So this is what I did:

at admin/settings/search,

- turned down the minimum characters for indexing (as I am trying to index two digit tradesman's codes).
- clicked the re-index site button
- manually ran cron (super easy to do b/c I am running the adminstration menu module so can do it from the Drupal logo fly out menu)

Now it is indexing my synonyms.

Thank you!

I'd love to see some documentation for this module.

#3

Status:active» fixed

#4

Component:Miscellaneous» Documentation
Category:bug report» task
Status:fixed» reviewed & tested by the community

That's great news. Thanks for following it up.
I'll leave the issue open so the maintainer can add instructions about this to the README or project page. It's simple (I guessed it without ever using the module), but deserves to be documented for everyone IMO.

#5

I can't get this to work. I'm very new to Drupal, but I am using the categories module in 6.15. I've tried the above re-indexing and running cron and it still isn't finding the terms I put in.

The site in question is www.microphoto.co.uk I am trying to get the synonyms for the category "Order: Coleoptera" to show up (these are "beetle" and "beetles") but search yields no results.

I don't know whether this might be an issue with the category module as I no longer have the ability to edit taxonomy (the menu disappeared from content management!)

#6

I don't know much about category, but from reading the documentation it appears that it is a replacement for taxonomy, and that you can't really use both category and taxonomy together (doing so would negate the purpose of category in the first place).

That presents a problem for modules that are designed to work with the core taxonomy module, and it appears that only some of them are "category compatable". The category docs refer to wrapper modules, "to allow full backwards-compatibility with the taxonomy and book modules (which this module is based upon), and thus with all other modules that depend on them.", so it sounds like you need a wrapper module to let synonyms work with category.

To me, it sounds like you'll have to raise a support request in the Category issue queue asking for this feature, although it appears to already have quite a backlog, so don't expect a response anytime soon. (Of course, you could try creating the wrapper yourself - synonyms is a nice, well-contained, short module, so whatever porting is required shouldn't be too great)

#7

Thanks for replying. I'm indeed using the wrapper modules, though I haven't gotten far in figuring out just what they are for!
I did a bit of snooping in phpmyadmin earlier at the drupal database to make sure that the synonyms existed somewhere. They appear to be stored in a table called category_synonym, with the structure being:

csid - int
cid - int
name - varchar

I was wondering if this is similar to the taxonomy synonyms, on the off chance a solution would be to edit the module to make reference to the different table they are stored in?