Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
QueryResponse.getBeans()
@Field
是否有 xml(或其他外部化)替代方案@Field?
Afaik 没有外部化的标准方法。
但是可能有一些方法可以实现您想要做的事情:
这是关于它的问题:Solr 正在增加更多的灵活性。
我想这可能会对你有所帮助。
http://wiki.apache.org/solr/SchemaXml
在过去,我还从其他项目创建了自己的类版本,然后提供了一个转换器来从我所依赖的外部类构建我的版本。该变压器可以双向工作并且易于测试。