I am indexing a collection of xml document with the next structure:
1234
Some Name
I think there is no obvious solution for indexing data coming from the many-to-many relationship. In this case I would go with dynamic fields: http://wiki.apache.org/solr/SchemaXml#Dynamic_fields
Field definition in schema.xml
:
So, using your example you would end up with something like this:
1234
Some Name
10
4
1
Then you can use the following query: fq=experience_Java:[3 to *]