Hi,
When I saw informations about managing news, I was really excited
by the project because I have to do something similar.
I installed the project las week and was really impressed by the
quality of what you've done!
I tried to increase the table data_term with personal datas and saw
there is somes strange things in the extractor module.
First of all, in the method _extractor_simple_lookup, I think you
should transform the code :
if (stripos($name, $word) === 0) {
$terms[$term->id] = $term;
}
in something like that :
if (stripos($name, $word) === 0) {
$terms[$term->tid] = $term;
}
Secondly, I saw there is a table called term_synonym. I think it
could be very cool to integrate the association between term_data
and term_synonym to increase the quality of the extraction (for
example a multilangage extraction).
$result = db_query_range('SELECT tid, name FROM {term_data} WHERE
vid = %d', variable_get('extractor_simple_vid', 1), 0, 100000);
I hope it can help you to increase the quality of your product.
Comments
Comment #1
alex_b commentedThank you for reporting.
- Fix for term tid issue: http://github.com/developmentseed/extractor/commit/712220e66452980f141b4...
- Fix for openlayers (fixing the term issue actually surfaced an issue with term grouping in openlayers) #630976: Grouping assumes $record key 0, items not showing on map
- I've opened an issue for supporting synonyms in extractor module's queue here: http://github.com/developmentseed/extractor/issues/#issue/1 (I yet need to release extractor on d. o.).
This is fixed and will be rolled out with the next release (most likely next week). In the meantime, you can update extractor from the latest dev version on github and patch your openlayers module with #630976.
Comment #2
haisam commentedExcellent! Thank you alex