Changeset 38155 for gs3-extensions/solr


Ignore:
Timestamp:
2023-09-18T14:47:54+12:00 (8 months ago)
Author:
kjdon
Message:

made some static strings for param names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs3-extensions/solr/trunk/src/src/java/org/greenstone/gsdl3/service/GS2SolrSearch.java

    r37785 r38155  
    6767  protected static final String SORT_ORDER_ASCENDING = "0";
    6868
     69    protected static final String FACET_QUERIES_PARAM = "facetQueries";
     70    protected static final String DOC_FILTER_PARAM = "docFilter";
     71   
    6972    static Logger logger = Logger.getLogger(org.greenstone.gsdl3.service.GS2SolrSearch.class.getName());
    7073
     
    145148            return false;
    146149        }
    147            
     150
     151        // set up which params to save
     152        this.save_params.add(LEVEL_PARAM);
     153
    148154        // Setting up facets
    149155
     
    348354                }
    349355            }
    350             else if (name.equals("facetQueries") && value.length() > 0)
     356            else if (name.equals(FACET_QUERIES_PARAM) && value.length() > 0)
    351357            {
    352358                //logger.info("@@@ SOLR FACET VALUE FOUND: " + value);
     
    361367                physical_index_language_name = value;
    362368            } // ignore any others
    363             else if (name.equals("docFilter"))
     369            else if (name.equals(DOC_FILTER_PARAM))
    364370            {
    365371                docFilter = value;
     
    379385        this.solr_src.setMaxDocs(maxdocs);
    380386
    381         if (index.equals("sidx") || index.equals("didx"))
     387        if (index.equals(SECTION_INDEX) || index.equals(DOCUMENT_INDEX))
    382388        {
    383389            if (physical_sub_index_name != null)
Note: See TracChangeset for help on using the changeset viewer.