Ignore:
Timestamp:
2006-07-24T02:57:51+12:00 (18 years ago)
Author:
sjboddie
Message:

Added "Sort Field" (sf) argument that can be passed through to a lucene
collection to sort search results by a metadata field.

File:
1 edited

Legend:

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

    r11987 r12276  
    138138    option.name = "Level";
    139139    option.value = args["g"];
     140    request.filterOptions.push_back (option);
     141  }
     142
     143  if (!args["sf"].empty()) { // sort field for lucene
     144    option.name = "SortField";
     145    option.value = args["sf"];
    140146    request.filterOptions.push_back (option);
    141147  }
Note: See TracChangeset for help on using the changeset viewer.