Revision 7528
Added by Jing Tao over 11 years ago
docs/user/metacat/source/query-index.rst | ||
---|---|---|
84 | 84 |
} |
85 | 85 |
class AbstractDocumentSubprocessor { |
86 | 86 |
- List<SolrField> fields |
87 |
+ setMatchDocument(String matchDocument) |
|
88 |
+ setFieldList(List<SolrField> fieldList) |
|
87 | 89 |
} |
88 | 90 |
class ResourceMapSubprocessor { |
89 | 91 |
} |
... | ... | |
109 | 111 |
} |
110 | 112 |
class SolrFieldResourceMap { |
111 | 113 |
} |
114 |
|
|
115 |
class SolrDoc { |
|
116 |
- List<SolrElementField> fieldList |
|
117 |
} |
|
118 |
|
|
119 |
class SolrElementField { |
|
120 |
- String name |
|
121 |
- String value |
|
122 |
} |
|
112 | 123 |
|
113 | 124 |
} |
114 | 125 |
|
... | ... | |
123 | 134 |
SolrField <|-- ResolveSolrField |
124 | 135 |
SolrField <|-- SolrFieldResourceMap |
125 | 136 |
|
137 |
|
|
126 | 138 |
AbstractDocumentSubprocessor o--"*" ISolrField |
127 | 139 |
|
140 |
IDocumentSubprocessor --> SolrDoc |
|
141 |
|
|
142 |
SolrDoc o--"*" SolrElementField |
|
143 |
|
|
144 |
package solr { |
|
145 |
|
|
146 |
abstract class SolrServer { |
|
147 |
+ add(SolrInputDocument doc) |
|
148 |
+ deleteByQuery(String id) |
|
149 |
+ query(SolrQuery query) |
|
150 |
} |
|
151 |
class EmbeddedSolrServer { |
|
152 |
} |
|
153 |
class HttpSolrServer { |
|
154 |
} |
|
155 |
|
|
156 |
} |
|
157 |
|
|
158 |
SolrServer <|-- EmbeddedSolrServer |
|
159 |
SolrServer <|-- HttpSolrServer |
|
160 |
|
|
161 |
|
|
128 | 162 |
package edu.ucsb.nceas.metacat.indexer { |
129 | 163 |
|
130 |
class MetacatIndex { |
|
164 |
class MetacatSolrIndex {
|
|
131 | 165 |
- List<IDocumentSubprocessor> subprocessors |
132 |
- List<SolrField> sysmetaFields |
|
133 | 166 |
- SolorFiledParser solrFieldParser |
134 | 167 |
- EmbeddedSolrServer solrServer |
135 | 168 |
+ insert(String pid, InputStream data) |
... | ... | |
146 | 179 |
|
147 | 180 |
} |
148 | 181 |
|
182 |
MetacatSolrIndex *--"1" EmbeddedSolrServer |
|
183 |
MetacatSolrIndex --> SolrFieldParser |
|
184 |
MetacatSolrIndex o--"*" IDocumentSubprocessor |
|
185 |
SolrFieldParser --> SolrField |
|
186 |
|
|
149 | 187 |
|
150 |
package solr { |
|
151 |
|
|
152 |
abstract class SolrServer { |
|
153 |
+ add(SolrInputDocument doc) |
|
154 |
+ deleteByQuery(String id) |
|
155 |
+ query(SolrQuery query) |
|
156 |
} |
|
157 |
class EmbeddedSolrServer { |
|
158 |
} |
|
159 |
class HttpSolrServer { |
|
160 |
} |
|
161 | 188 |
|
162 |
} |
|
163 | 189 |
|
164 |
SolrServer <|-- EmbeddedSolrServer |
|
165 |
SolrServer <|-- HttpSolrServer |
|
166 | 190 |
|
167 |
|
|
168 | 191 |
|
169 | 192 |
@enduml |
Also available in: Unified diff
Add SolrDoc and SolrElementField class.