Handling ICollectionView format

An ICollectionView is a view onto a collection of data. All Classes implementing the ICollectionView interface (XML, XMLListCollection, ArrayCollection) are handled in the same way by the component.


In the following example, we show how Elastic Search provide an innovative way to filter an XML input and show extra data patterns :
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:elasticsearch="fr.kapit.elasticsearch.*" xmlns:kapit="fr.kapit.*">
	<mx:ArrayCollection id="myDataProvider">
		<mx:Object name="Jodie" country="Belgique" language="French" continent="Europe"/>
		<mx:Object name="Kate" country="Australia" language="English" continent="Asia Pacific"/>
		<mx:Object name="David" country="USA" language="English" continent="Europe"/>
		<mx:Object name="Nicolas" country="Russia" language="Russian" continent="Europe"/>
		<mx:Object name="Michael" country="USA" language="English" continent="Europe"/>
		<mx:Object name="Isabelle" country="France" language="French" continent="Europe"/>
		<mx:Object name="Dudek" country="Russia" language="Russian" continent="Europe"/>
		<mx:Object name="Hilary" country="USA" language="English" continent="Europe"/>
		<mx:Object name="Georges" country="Finland" language="English" continent="Europe"/>
		<mx:Object name="Fani" country="Italia" language="Italian" continent="Europe"/>
		<mx:Object name="Bertrand" country="France" language="French" continent="Europe"/>
		<mx:Object name="Cyril" country="France" language="French" continent="Europe"/>
		<mx:Object name="Fran├žois" country="Belgique" language="French" continent="Europe"/>
		<mx:Object name="Slim" country="Tunisia" language="Arabic" continent="Africa"/>
		<mx:Object name="Patrick" country="France" language="French" continent="Europe"/>
		<mx:Object name="Abdu" country="Nigeria" language="Nigerian" continent="Africa"/>
	</mx:ArrayCollection>
	<mx:VBox width="100%">	
		<elasticsearch:ElasticSearch
		height="270"
		width="100%"
		filterListFontColor="0x111111"
		firstColor="0x4b98da"
		lastColor="0xc9dfec"
		filterTitleFillColors="{['0xAADDAE','0xDDDDAE']}"
		filterTitleFillAlphas="{['0.4','0.2']}"
		dataProvider="{myDataProvider}"
		filterProperties="{['continent','country','language','name']}" 
		filterLabels="{['Continent','Country','Language','Student']}"/>
	</mx:VBox>
</mx:Application>