lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy <angelf...@yahoo.com>
Subject RE: Will Result Grouping return documents that don't contain the specified "group.field"?
Date Thu, 06 Jan 2011 22:55:24 GMT
So by default Solr will not return documents that don't contain the specified group.field?


--- On Thu, 1/6/11, Bob Sandiford <bob.sandiford@sirsidynix.com> wrote:

> From: Bob Sandiford <bob.sandiford@sirsidynix.com>
> Subject: RE: Will Result Grouping return documents that don't contain the specified "group.field"?
> To: "solr-user@lucene.apache.org" <solr-user@lucene.apache.org>
> Date: Thursday, January 6, 2011, 5:19 PM
> What if you put in a default value
> for the group_id field in the solr schema - would that work
> for you?  e.g. something like 'unknown'  Then
> you'll get all those with no original group_id value still
> grouped together, and you can figure out at display time
> what you want to do with them.
> 
> Bob Sandiford | Lead Software Engineer | SirsiDynix
> P: 800.288.8020 X6943 | Bob.Sandiford@sirsidynix.com
> www.sirsidynix.com 
> 
> 
> > -----Original Message-----
> > From: Andy [mailto:angelflow@yahoo.com]
> > Sent: Thursday, January 06, 2011 3:06 PM
> > To: solr-user@lucene.apache.org
> > Subject: Will Result Grouping return documents that
> don't contain the
> > specified "group.field"?
> > 
> > I want to group my results by a field named
> "group_id".
> > 
> > However, some of my documents don't contain the field
> "group_id". But I
> > still want these documents to be returned as part of
> the results as
> > long as they match the main query "q".
> > 
> > Do I need to do anything to tell Solr that I want
> those documents?
> > 
> > Thanks.
> > 
> > 
> > 
> 
> 
> 


      

Mime
View raw message