Project

General

Profile

« Previous | Next » 

Revision 7569

Added by Jing Tao about 11 years ago

Add a query method in the test.

View differences:

SolrIndex.java
76 76
    
77 77
    private static final String SOLRHOMEPATH = "/Users/tao/Downloads/apache-solr-3.4.0/example/solr";
78 78
    
79
    private static final String SOLRHOME = "solr.solr.home";
79
    public static final String SOLRHOME = "solr.solr.home";
80 80
    private static final String SOLRSERVERNAME = "metacat-core";
81 81
    
82 82
    
......
322 322
        solrServer.commit();
323 323
       
324 324
    }
325

  
326
    /**
327
     * Get the solrServer
328
     * @return
329
     */
330
    SolrServer getSolrServer() {
331
        return solrServer;
332
    }
333

  
334
    /**
335
     * Set the solrServer
336
     * @param solrServer
337
     */
338
    void setSolrServer(SolrServer solrServer) {
339
        this.solrServer = solrServer;
340
    }
325 341
}

Also available in: Unified diff