Re: Facets involving multiple fields
Nope. Information about your higher level use-case would probably be a good thing, this is starting to smell like an "XY" problem. Best Erick On Fri, Apr 13, 2012 at 5:48 AM, Marc SCHNEIDER wrote: > Hi, > > Thanks for your answer. > Yes it works in this case when I know the facet name (Computer). What > if I want to automatically compute all facets? > facet.query=keyword:* short_title:* doesn't work, right? > > Marc. > > On Thu, Apr 12, 2012 at 2:08 PM, Erick Erickson > wrote: >> facet.query=keywords:computer short_title:computer >> seems like what you're asking for. >> >> On Thu, Apr 12, 2012 at 3:19 AM, Marc SCHNEIDER >> wrote: >>> Hi, >>> >>> Thanks for your answer. >>> Let's say I have to fields : 'keywords' and 'short_title'. >>> For these fields I'd like to make a faceted search : if 'Computer' is >>> stored in at least one of these fields for a document I'd like to get >>> it added in my results. >>> doc1 => keywords : 'Computer' / short_title : 'Computer' >>> doc2 => keywords : 'Computer' >>> doc3 => short_title : 'Computer' >>> >>> In this case I'd like to have : Computer (3) >>> >>> I don't see how to solve this with facet.query. >>> >>> Thanks, >>> Marc. >>> >>> On Wed, Apr 11, 2012 at 5:13 PM, Erick Erickson >>> wrote: Have you considered facet.query? You can specify an arbitrary query to facet on which might do what you want. Otherwise, I'm not sure what you mean by "faceted search using two fields". How should these fields be combined into a single facet? What that means practically is not at all obvious from your problem statement. Best Erick On Tue, Apr 10, 2012 at 8:55 AM, Marc SCHNEIDER wrote: > Hi, > > I'd like to make a faceted search using two fields. I want to have a > single result and not a result by field (like when using > facet.field=f1,facet.field=f2). > I don't want to use a copy field either because I want it to be > dynamic at search time. > As far as I know this is not possible for Solr 3.x... > But I saw a new parameter named "group.facet" for Solr4. Could that > solve my problem? If yes could somebody give me an example? > > Thanks, > Marc.
Re: Facets involving multiple fields
Hi, Thanks for your answer. Yes it works in this case when I know the facet name (Computer). What if I want to automatically compute all facets? facet.query=keyword:* short_title:* doesn't work, right? Marc. On Thu, Apr 12, 2012 at 2:08 PM, Erick Erickson wrote: > facet.query=keywords:computer short_title:computer > seems like what you're asking for. > > On Thu, Apr 12, 2012 at 3:19 AM, Marc SCHNEIDER > wrote: >> Hi, >> >> Thanks for your answer. >> Let's say I have to fields : 'keywords' and 'short_title'. >> For these fields I'd like to make a faceted search : if 'Computer' is >> stored in at least one of these fields for a document I'd like to get >> it added in my results. >> doc1 => keywords : 'Computer' / short_title : 'Computer' >> doc2 => keywords : 'Computer' >> doc3 => short_title : 'Computer' >> >> In this case I'd like to have : Computer (3) >> >> I don't see how to solve this with facet.query. >> >> Thanks, >> Marc. >> >> On Wed, Apr 11, 2012 at 5:13 PM, Erick Erickson >> wrote: >>> Have you considered facet.query? You can specify an arbitrary query >>> to facet on which might do what you want. Otherwise, I'm not sure what >>> you mean by "faceted search using two fields". How should these fields >>> be combined into a single facet? What that means practically is not at >>> all obvious from your problem statement. >>> >>> Best >>> Erick >>> >>> On Tue, Apr 10, 2012 at 8:55 AM, Marc SCHNEIDER >>> wrote: Hi, I'd like to make a faceted search using two fields. I want to have a single result and not a result by field (like when using facet.field=f1,facet.field=f2). I don't want to use a copy field either because I want it to be dynamic at search time. As far as I know this is not possible for Solr 3.x... But I saw a new parameter named "group.facet" for Solr4. Could that solve my problem? If yes could somebody give me an example? Thanks, Marc.
Re: Facets involving multiple fields
facet.query=keywords:computer short_title:computer seems like what you're asking for. On Thu, Apr 12, 2012 at 3:19 AM, Marc SCHNEIDER wrote: > Hi, > > Thanks for your answer. > Let's say I have to fields : 'keywords' and 'short_title'. > For these fields I'd like to make a faceted search : if 'Computer' is > stored in at least one of these fields for a document I'd like to get > it added in my results. > doc1 => keywords : 'Computer' / short_title : 'Computer' > doc2 => keywords : 'Computer' > doc3 => short_title : 'Computer' > > In this case I'd like to have : Computer (3) > > I don't see how to solve this with facet.query. > > Thanks, > Marc. > > On Wed, Apr 11, 2012 at 5:13 PM, Erick Erickson > wrote: >> Have you considered facet.query? You can specify an arbitrary query >> to facet on which might do what you want. Otherwise, I'm not sure what >> you mean by "faceted search using two fields". How should these fields >> be combined into a single facet? What that means practically is not at >> all obvious from your problem statement. >> >> Best >> Erick >> >> On Tue, Apr 10, 2012 at 8:55 AM, Marc SCHNEIDER >> wrote: >>> Hi, >>> >>> I'd like to make a faceted search using two fields. I want to have a >>> single result and not a result by field (like when using >>> facet.field=f1,facet.field=f2). >>> I don't want to use a copy field either because I want it to be >>> dynamic at search time. >>> As far as I know this is not possible for Solr 3.x... >>> But I saw a new parameter named "group.facet" for Solr4. Could that >>> solve my problem? If yes could somebody give me an example? >>> >>> Thanks, >>> Marc.
Re: Facets involving multiple fields
Hi, Thanks for your answer. Let's say I have to fields : 'keywords' and 'short_title'. For these fields I'd like to make a faceted search : if 'Computer' is stored in at least one of these fields for a document I'd like to get it added in my results. doc1 => keywords : 'Computer' / short_title : 'Computer' doc2 => keywords : 'Computer' doc3 => short_title : 'Computer' In this case I'd like to have : Computer (3) I don't see how to solve this with facet.query. Thanks, Marc. On Wed, Apr 11, 2012 at 5:13 PM, Erick Erickson wrote: > Have you considered facet.query? You can specify an arbitrary query > to facet on which might do what you want. Otherwise, I'm not sure what > you mean by "faceted search using two fields". How should these fields > be combined into a single facet? What that means practically is not at > all obvious from your problem statement. > > Best > Erick > > On Tue, Apr 10, 2012 at 8:55 AM, Marc SCHNEIDER > wrote: >> Hi, >> >> I'd like to make a faceted search using two fields. I want to have a >> single result and not a result by field (like when using >> facet.field=f1,facet.field=f2). >> I don't want to use a copy field either because I want it to be >> dynamic at search time. >> As far as I know this is not possible for Solr 3.x... >> But I saw a new parameter named "group.facet" for Solr4. Could that >> solve my problem? If yes could somebody give me an example? >> >> Thanks, >> Marc.
Re: Facets involving multiple fields
Have you considered facet.query? You can specify an arbitrary query to facet on which might do what you want. Otherwise, I'm not sure what you mean by "faceted search using two fields". How should these fields be combined into a single facet? What that means practically is not at all obvious from your problem statement. Best Erick On Tue, Apr 10, 2012 at 8:55 AM, Marc SCHNEIDER wrote: > Hi, > > I'd like to make a faceted search using two fields. I want to have a > single result and not a result by field (like when using > facet.field=f1,facet.field=f2). > I don't want to use a copy field either because I want it to be > dynamic at search time. > As far as I know this is not possible for Solr 3.x... > But I saw a new parameter named "group.facet" for Solr4. Could that > solve my problem? If yes could somebody give me an example? > > Thanks, > Marc.
Facets involving multiple fields
Hi, I'd like to make a faceted search using two fields. I want to have a single result and not a result by field (like when using facet.field=f1,facet.field=f2). I don't want to use a copy field either because I want it to be dynamic at search time. As far as I know this is not possible for Solr 3.x... But I saw a new parameter named "group.facet" for Solr4. Could that solve my problem? If yes could somebody give me an example? Thanks, Marc.