You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by wenky <we...@mailinator.com> on 2014/06/24 13:28:35 UTC

Aggregate functions in Solr entity Queries.

Hi,
   Im new to solr and would ike to index my database.It is working fine for
columns.
But in solr I have one which which will take the average value from
database.The avaerage is not saving in solr.
Below is my sample dataconfig.xml
<dataSource  />
    <document>
        <entity name="doctor" query="***">
		//fields<->Columns

			<entity name="count" query="select count(*) from table" >
				<field column="count" name="countValue" />
			</entity>
			
			  ..
</document>
countValue is always returning zero.
Can anyone help me in this regard.




--
View this message in context: http://lucene.472066.n3.nabble.com/Aggregate-functions-in-Solr-entity-Queries-tp4143675.html
Sent from the Solr - User mailing list archive at Nabble.com.