Changeset 16035


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

(Adding dynamic classifiers) Added support for the "-sort_documents_by" option.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/src/recpt/dynamicclassifieraction.cpp

    r16033 r16035  
    272272
    273273  // Get all the documents at this level
     274  text_t sort_documents_by = "";
     275  if (classifier_options.find("-sort_documents_by") != classifier_options.end())
     276  {
     277    sort_documents_by = classifier_options["-sort_documents_by"];
     278  }
    274279  FilterResponse_t documents_response;
    275   get_documents_with_metadata_value (metadata_element_name, classifier_node_metadata_value, "dls.Title", args["c"], collectproto, documents_response, logout);
     280  get_documents_with_metadata_value (metadata_element_name, classifier_node_metadata_value, sort_documents_by, args["c"], collectproto, documents_response, logout);
    276281
    277282  // If there are no classifier nodes or documents at this level then the classifier node value is invalid
Note: See TracChangeset for help on using the changeset viewer.