Re: how to best convert some term in q to a fq

2014-01-07 Thread Kranti
I thought the intention to convert country as fq is to hit the filter cache for performance than boosting results. > On Dec 27, 2013, at 10:31 PM, Josh Lincoln wrote: > > what if you add your country field to qf with a strong boost? the search > experience would be slightly different than if yo

Re: how to best convert some term in q to a fq

2014-01-07 Thread Kranti
As Joel suggested it would be easy to find that outside of solr. But if you really want to do the solr way, then you would need to write custom request handler or query component. The later needs more understanding of solr/lucene APIs. The former would be relatively simple to set the fq into sol

Re: how to best convert some term in q to a fq

2013-12-28 Thread Jason Hellman
I second this notion. My reasoning focuses mostly on maintainability, where I posit that your client code will be far easier to extend/modify/troubleshoot than any effort spent attempting to do this within Solr. Jason On Dec 23, 2013, at 12:07 PM, Joel Bernstein wrote: > I would suggest ha

Re: how to best convert some term in q to a fq

2013-12-27 Thread Josh Lincoln
what if you add your country field to qf with a strong boost? the search experience would be slightly different than if you filter on country, but maybe still good enough for your users and certainly simpler to implement and maintain. You'd likely only want exact matches. Assuming you are using edi

Re: how to best convert some term in q to a fq

2013-12-23 Thread Joel Bernstein
I would suggest handling this in the client. You could write custom Solr code also but it would be more complicated because you'd be working with Solr's API's. Joel Bernstein Search Engineer at Heliosearch On Mon, Dec 23, 2013 at 2:36 PM, jmlucjav wrote: > Hi, > > I have this scenario that I

how to best convert some term in q to a fq

2013-12-23 Thread jmlucjav
Hi, I have this scenario that I think is no unusual: solr will get a user entered query string like 'apple pear france'. I need to do this: if any of the terms is a country, then change the query params to move that term to a fq, i.e: q=apple pear france to q=apple pear&fq=country:france What do