Closed (works as designed)
Project:
Taxonomy Autotagger
Version:
6.x-1.22
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Feb 2009 at 06:12 UTC
Updated:
2 Apr 2009 at 07:34 UTC
Is it possible to differentiate for Terms that have multiple words, and each word is listed also as term.
Easier with an example:
Term 1 : A B
Term 2: A
Term 3: B
A node with body has the text: "A went to school for B"
In this case, Terms A and B are assigned, but not term "A B"
Thanks for suggestions,
Comments
Comment #1
sdrycroft commentedYour example makes little sense, do you have a better one?
Comment #2
sbydrupal commentedThis is a great module and I will use it extensively to automate the tagging process during node creation.
The question, more clearly, is:
Say you have a taxonomy term: John Swims
The node you have has the text: John goes to the pool and swims.
The autotagger does not tag this node with "John Swims" as "John" and "Swims" words does not come together in the text attached to each other.
There are many cases, where, taxonomy terms contain multiple terms and these terms represent
names/actions/subjects and do not come together in the text necessarily.
This feature is implemented in Masstag module, which operates in a different context than autotagger.
Thanks again,
Comment #3
sdrycroft commentedIn your particular example, I'd actually say that the term "John swims" should in fact be two separate terms "John" and "Swims". I'll have a think if there is an easy way of implementing this. If there is an easy way, it may go in, else I'm reluctant to spend too much time on it.
Comment #4
sbydrupal commentedThanks. In Masstag module,
"All" option is added for this purpose , works well.
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/masstag/mas...
has the patch that shows the code for "All" option (in Green color) along with "Any"
which is below:
case 'all':
18 $query = "SELECT n.nid, n.vid, n.title FROM {node} n INNER JOIN {search_index} i ON n.nid = i.sid AND i.type = 'node' WHERE " . $search_query[2] . " GROUP BY i.type, i.sid HAVING COUNT(*) >= %d";
19 $result = db_query($query, array_merge(array_values($search_query[3]), array($search_query[4])));
20 break;
Comment #5
sdrycroft commented