Skip to content

Instantly share code, notes, and snippets.

@pulse00
Created October 15, 2010 17:09
Show Gist options
  • Save pulse00/628554 to your computer and use it in GitHub Desktop.
Save pulse00/628554 to your computer and use it in GitHub Desktop.
<dataConfig>
<dataSource encoding="UTF-8" driver="com.mysql.jdbc.Driver"/>
<document name="solrIndex">
<entity name="artist" query="select id, name, stats_total, stats_popindex from artist where namevariation_id is null and deleted = 0" >
<field column="id" name="id_i" />
<field column="name" name="name_t" />
<entity name="recording" query="select recording_id from recording_artist where artist_id=${artist.id}">
<field column="recording_id" name="recs_i" />
</entity>
</entity>
<entity name="brand" query="select id, title, type from brand where deleted = 0" >
<field column="id" name="id_i" />
<field column="title" name="title_t" />
<entity name="recording" query="select recording_id from recording_artist where artist_id in (select artist_id from brand_artist where brand_id=${brand.id})">
<field column="recording_id" name="recs_i" />
</entity>
</entity>
</document>
</dataConfig>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment