Changeset 25864 for gs3-extensions

Show
Ignore:
Timestamp:
28.06.2012 13:11:48 (7 years ago)
Author:
sjm84
Message:

SolrQueryResult? now can now store facets

Files:
1 modified

Legend:

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

    r24739 r25864  
    2727package org.greenstone.gsdl3.util; 
    2828 
    29 import java.util.Vector; 
     29import java.util.List; 
    3030 
     31import org.apache.solr.client.solrj.response.FacetField; 
    3132import org.greenstone.LuceneWrapper3.SharedSoleneQueryResult; 
    3233 
    33  
    34 /** Opportunity to fine tune QueryResult for solr search, 
    35  * such as facets, spelling corrections, etc. 
    36  * 
     34/** 
     35 * Opportunity to fine tune QueryResult for solr search, such as facets, 
     36 * spelling corrections, etc. 
     37 *  
    3738 */ 
    3839 
    39 public class SolrQueryResult extends SharedSoleneQueryResult { 
    40  
    41     // Currently no fine tuning -- rely on underlying shared Solr/Lucene base class 
    42     SolrQueryResult() { 
    43     super(); 
    44     }  
     40public class SolrQueryResult extends SharedSoleneQueryResult 
     41{ 
     42    protected List<FacetField> _facetResults = null; 
     43    SolrQueryResult() 
     44    { 
     45        super(); 
     46    } 
     47     
     48    public void setFacetResults(List<FacetField> facetResults) 
     49    { 
     50        _facetResults = facetResults; 
     51    } 
     52     
     53    public List<FacetField> getFacetResults() 
     54    { 
     55        return _facetResults; 
     56    } 
    4557}