Yes, it's not a bad idea, and I will use this sort of trick as a last resort, but I would rather use something more "proper"...
Thanks, P-Yves > Date: Mon, 18 May 2009 21:33:03 +0530 > Subject: Re: How to gather fields when faceting results ? > From: avl...@gmail.com > To: solr-user@lucene.apache.org > > How about having a single "facetable" field with values parentId_parentTitle? > Get rid of the parentId and the underscore as a post process. > > Cheers > Avlesh > > On Mon, May 18, 2009 at 7:13 PM, Pierre-Yves LANDRON > <pland...@hotmail.com>wrote: > > > > > Hello, > > > > Using faceting in my results, I would like to "link" two fields : > > For example, a parentID field should help me retrieve all the different > > parents ids from a query, but it can't be used for displaying the facets, as > > it doesn't mean anything for a user. A second field, parentTitle, in my > > document is a human readable transcription of this field : it is not usable > > as an identifiant because several parentID can use the same parentTitle. > > When parentID is used in faceting my results, I would like to retrieve the > > parentTitle as well, and sort of be able to "link" the two of them, so the > > later could be displayed instead of the former... > > Is there a way to accomplish that ? > > > > Thanks, > > King regards, > > Pierre-Yves > > > > _________________________________________________________________ > > More than messages–check out the rest of the Windows Live™. > > http://www.microsoft.com/windows/windowslive/ _________________________________________________________________ Drag n’ drop—Get easy photo sharing with Windows Live™ Photos. http://www.microsoft.com/windows/windowslive/products/photos.aspx