Revision 8121
Added by Jing Tao over 11 years ago
metacat-common/src/main/java/edu/ucsb/nceas/metacat/common/query/SolrQueryService.java | ||
---|---|---|
46 | 46 |
|
47 | 47 |
|
48 | 48 |
/** |
49 |
* A query interface for the solr server
|
|
49 |
* An abstract query service class for the solr server
|
|
50 | 50 |
* @author tao |
51 | 51 |
* |
52 | 52 |
*/ |
... | ... | |
82 | 82 |
supportedWriterTypes.add(SolrQueryResponseWriterFactory.PYTHON); |
83 | 83 |
supportedWriterTypes.add(SolrQueryResponseWriterFactory.XML); |
84 | 84 |
} |
85 |
/** |
|
86 |
* Query the Solr server with specified query and user's identity. If the Subjects |
|
87 |
* is null, there will be no access rules for the query. This is the for the http solr server. |
|
88 |
* @param query the query string |
|
89 |
* @param subjects the user's identity which sent the query |
|
90 |
* @return the response |
|
91 |
* @throws Exception |
|
92 |
*/ |
|
93 |
//public abstract InputStream query(String query, Set<Subject>subjects) throws Exception; |
|
85 |
|
|
94 | 86 |
|
95 | 87 |
/** |
96 | 88 |
* Query the Solr server with specified query and user's identity. If the Subjects |
Also available in: Unified diff
Change it from an interface to an abstract class in the document.