Re: Finding max value from a fieldvalue using solr query

2012-11-24 Thread Luis Cappa Banda
Hello. You can query by *:* with start=0, rows=1, fl=contentid and sorting by contentid. Get the bigger/smaller value for that field is from the first (and only) document returned. Regards, - Luis Cappa. El 24/11/2012 14:45, "Jack Krupansky" escribió: > The "stats" component will give you the

Re: Finding max value from a fieldvalue using solr query

2012-11-24 Thread Jack Krupansky
The "stats" component will give you the minimum and maximum values for fields, among other statistics (e.g., number of documents where a field is missing). Just add &stats=true&stats.field=contentid to your query. The counts will be in the "stats" section of the query response. -- Jack Krupa