Changeset 16037


Ignore:
Timestamp:
2008-06-17T14:56:46+12:00 (16 years ago)
Author:
mdewsnip
Message:

(Adding dynamic classifiers) Fixed problem where classifier nodes have incorrect numleafdocs values if documents have two metadata values the same.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/src/lib/sqlitedbclass.cpp

    r16036 r16037  
    202202
    203203  // Get the entries in the "document_metadata" table where the element matches that specified
    204   text_t sql_cmd = "SELECT value FROM document_metadata WHERE element='" + sqlite_safe(metadata_element_name) + "'";
     204  text_t sql_cmd = "SELECT DISTINCT docOID,value FROM document_metadata WHERE element='" + sqlite_safe(metadata_element_name) + "'";
    205205
    206206  // Add value filter, if one has been defined
Note: See TracChangeset for help on using the changeset viewer.