Re: Return records based on aggregate functions?

2011-08-18 Thread Erick Erickson
Side comment: Is your content field really a string value in your schema.xml? that's an un-analyzed type and unless you're always searching for *exactly* the full contents of the field, you'll have problems Best Erick On Wed, Aug 17, 2011 at 2:20 PM, Daniel Skiles daniel.ski...@docfinity.com

Re: Return records based on aggregate functions?

2011-08-18 Thread Daniel Skiles
It's actually an analyzed String. I figured that out after the first test run. On Thu, Aug 18, 2011 at 9:00 AM, Erick Erickson erickerick...@gmail.comwrote: Side comment: Is your content field really a string value in your schema.xml? that's an un-analyzed type and unless you're always

RE: Return records based on aggregate functions?

2011-08-17 Thread Dyer, James
Daniel, This looks like a good usecase for FieldCollapsing (see http://wiki.apache.org/solr/FieldCollapsing). Perhaps try something like: group=truegroup.field=documentIdgroup.limit=1group.sort=version desc James Dyer E-Commerce Systems Ingram Content Group (615) 213-4311 -Original

Re: Return records based on aggregate functions?

2011-08-17 Thread Daniel Skiles
Woah. That looks like exactly what I need. Thanks you very much. Is there any documentation for how to do that using the SolrJ API? On Wed, Aug 17, 2011 at 2:26 PM, Dyer, James james.d...@ingrambook.comwrote: Daniel, This looks like a good usecase for FieldCollapsing (see

RE: Return records based on aggregate functions?

2011-08-17 Thread Dyer, James
, 2011 1:32 PM To: solr-user@lucene.apache.org Subject: Re: Return records based on aggregate functions? Woah. That looks like exactly what I need. Thanks you very much. Is there any documentation for how to do that using the SolrJ API? On Wed, Aug 17, 2011 at 2:26 PM, Dyer, James james.d

Re: Return records based on aggregate functions?

2011-08-17 Thread Daniel Skiles
/solrquery_api_for_adding_group_filter James Dyer E-Commerce Systems Ingram Content Group (615) 213-4311 -Original Message- From: Daniel Skiles [mailto:daniel.ski...@docfinity.com] Sent: Wednesday, August 17, 2011 1:32 PM To: solr-user@lucene.apache.org Subject: Re: Return records based on aggregate

RE: Return records based on aggregate functions?

2011-08-17 Thread Dyer, James
@lucene.apache.org Subject: Re: Return records based on aggregate functions? For response option 1, would I add the group.main=true and group.format=simple parameters to the SolrQuery object? On Wed, Aug 17, 2011 at 3:09 PM, Dyer, James james.d...@ingrambook.comwrote: For the request end, you can just use