Ignore:
Timestamp:
2018-09-13T14:18:16+12:00 (6 years ago)
Author:
kjdon
Message:

replacing hard coded param names with static string variables. set up save params for those params we need to save to the session.

File:
1 edited

Legend:

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

    r28966 r32453  
    7171    }
    7272
     73    public boolean configure(Element info, Element extra_info)
     74    {
     75        if (!super.configure(info, extra_info))
     76        {
     77            return false;
     78        }
     79
     80        logger.info("Configuring AbstractTextSearch...");
     81        // we need to set up the save_params - we want all our search settings saved by default
     82        this.save_params.add(INDEX_SUBCOLLECTION_PARAM);
     83        this.save_params.add(INDEX_LANGUAGE_PARAM);
     84        this.save_params.add(CASE_PARAM);
     85        this.save_params.add(STEM_PARAM);
     86        this.save_params.add(ACCENT_PARAM);
     87        this.save_params.add(MATCH_PARAM);
     88
     89        return true;
     90
     91    }
    7392    /** adds the standard query params into the service description */
    7493    protected void addStandardQueryParams(Element param_list, String lang)
Note: See TracChangeset for help on using the changeset viewer.