| 103 | == Querying metadata indices == |
| 104 | ''section being written'' |
| 105 | |
| 106 | We have metadata fields in the MD-Records. These can be searched in the MDRepository. |
| 107 | And we have metadata fields that the content search allows to query directly. |
| 108 | |
| 109 | Basic example: wanting to search in Resources of a specific language. |
| 110 | This can be simply encoded in the Collection-MDRecord, for all the member resources, |
| 111 | so the MD-Result would be the Collection-MDRecord (with appropriate Repository attached) |
| 112 | |
| 113 | Another repository could serve resources of different languages and expose `language` as MD-filter. |
| 114 | Then we would pass the language-parameter to the repository. |
| 115 | The Repository-MDrecord (or the `explain`-record) would inform, that it exposes given index. |
| 116 | |
| 117 | How to avoid confusion? Probably try to handle this transparently for the user, |
| 118 | meaning that SHe does not have to bother where which index applies. |
| 119 | That means that the CDMDC-component has to do the maths (routing the MD-query correctly, mapping between equivalent indices). |
| 120 | |