Changeset 9270 for trunk/gsdl3/src


Ignore:
Timestamp:
2005-03-03T17:16:59+13:00 (19 years ago)
Author:
kjdon
Message:

made does_chunking false by default, added ina new flag, does_multi_index_search - set to true if your service can search more than one index at once

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/service/AbstractSearch.java

    r9266 r9270  
    6262    protected static final String MATCH_PARAM_SOME = "some";
    6363
    64 
     64    /** can more than one index be searched at the smae time? */
     65    protected boolean does_multi_index_search = false;
     66    /** does this service support paging of results? */
    6567    protected boolean does_paging = false;
    66     protected boolean does_chunking = true;
     68    /** does this service support asking for a subset of results? */
     69    protected boolean does_chunking = false;
     70    /** the default document type - use if all documents are the same type
     71     */
    6772    protected String default_document_type = null;
    6873
     
    191196        ArrayList index_names = new ArrayList();
    192197        getIndexData(index_ids, index_names, lang);
    193         param = GSXML.createParameterDescription2(this.doc, INDEX_PARAM, getTextString("param."+INDEX_PARAM, lang, "AbstractSearch"), GSXML.PARAM_TYPE_ENUM_SINGLE, /*this.default_index*/"", index_ids, index_names);
     198        String param_type = GSXML.PARAM_TYPE_ENUM_SINGLE;
     199        if (does_multi_index_search) {
     200        param_type = GSXML.PARAM_TYPE_ENUM_MULTI;
     201        }
     202        param = GSXML.createParameterDescription2(this.doc, INDEX_PARAM, getTextString("param."+INDEX_PARAM, lang, "AbstractSearch"), param_type, /*this.default_index*/"", index_ids, index_names);
    194203        param_list.appendChild(param);
    195204    } else if (name.equals(MAXDOCS_PARAM)) {
Note: See TracChangeset for help on using the changeset viewer.