Changeset 29318

Show
Ignore:
Timestamp:
22.09.2014 10:07:11 (5 years ago)
Author:
kjdon
Message:

adding in sort by and sort order params for lucene advanced field query

Location:
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/AbstractGS2FieldSearch.java

    r28966 r29318  
    360360            else if (service_id.equals(ADVANCED_FIELD_QUERY_SERVICE)) 
    361361            { 
    362                 createParameter(LEVEL_PARAM, param_list, lang); 
    363                 createParameter(RANK_PARAM, param_list, lang); 
     362                addCustomQueryParamsAdvField(param_list, lang); 
    364363                createParameter(MAXDOCS_PARAM, param_list, lang); 
    365364                if (!default_index_subcollection.equals("")) 
     
    428427        createParameter(LEVEL_PARAM, param_list, lang); 
    429428        super.addCustomQueryParams(param_list, lang); 
     429    } 
     430    /** add in the level params to TextQuery */ 
     431    protected void addCustomQueryParamsAdvField(Element param_list, String lang) 
     432    { 
     433        createParameter(LEVEL_PARAM, param_list, lang); 
    430434    } 
    431435 
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/SharedSoleneGS2FieldSearch.java

    r29168 r29318  
    117117        createParameter(SORT_ORDER_PARAM, param_list, lang); 
    118118    } 
     119  /** add in Lucene/SOLR specific params for AdvancedFieldQuery */ 
     120  protected void addCustomQueryParamsAdvField(Element param_list, String lang) 
     121    { 
     122        super.addCustomQueryParamsAdvField(param_list, lang); 
     123        createParameter(RANK_PARAM, param_list, lang); 
     124        createParameter(SORT_ORDER_PARAM, param_list, lang); 
     125         
     126    } 
    119127 
    120128    /** create a param and add to the list */