- I want to use
QueryResponse.getBeans()
- I have classes defined in another project which does not have solr dependencies, so I can't use
@Field
on them
Is there an xml (or other externalized) alternative to @Field
?
QueryResponse.getBeans()
@Field
on themIs there an xml (or other externalized) alternative to @Field
?
Afaik there is no externalized standard way to this.
But there are probably some ways to achieve what you are trying to do:
Here is the issue about it: Solr are adding more flexibility.
I think this may help you.
http://wiki.apache.org/solr/SchemaXml
In the past I have also created my own versions of the classes from the other project and then provided a transformer to build my versions from the external classes I depend on. This transformer can work both ways and is easily tested.