Re: Converting fq params to Filter object

2012-12-28 Thread Nalini Kartha
, you can use the same approach as in SOLR-3240, implementing >> a Collector that only looks for 1 document then quits. >> >> James Dyer >> E-Commerce Systems >> Ingram Content Group >> (615) 213-4311 >> >> >> -Original Message- >> From: Nalini Kar

Re: Converting fq params to Filter object

2012-12-28 Thread Nalini Kartha
alinikar...@gmail.com] > Sent: Thursday, December 27, 2012 2:31 PM > To: solr-user@lucene.apache.org > Subject: Re: Converting fq params to Filter object > > Hi James, > > Yup, that was what I tried to do initially but it seems like calling > through to those Solr met

RE: Converting fq params to Filter object

2012-12-27 Thread Dyer, James
E-Commerce Systems Ingram Content Group (615) 213-4311 -Original Message- From: Nalini Kartha [mailto:nalinikar...@gmail.com] Sent: Thursday, December 27, 2012 2:31 PM To: solr-user@lucene.apache.org Subject: Re: Converting fq params to Filter object Hi James, Yup, that was what I tried to do

Re: Converting fq params to Filter object

2012-12-27 Thread Nalini Kartha
Hi James, Yup, that was what I tried to do initially but it seems like calling through to those Solr methods from DirectSpellChecker was not a good idea - am I wrong? And like you mentioned, this seemed like it wasn't low-level enough. Eric: Unfortunately the collate functionality does not work f

RE: Converting fq params to Filter object

2012-12-27 Thread Dyer, James
t the expense of not getting exact hit-counts. James Dyer E-Commerce Systems Ingram Content Group (615) 213-4311 -Original Message- From: Nalini Kartha [mailto:nalinikar...@gmail.com] Sent: Thursday, December 27, 2012 1:09 PM To: solr-user@lucene.apache.org Subject: Re: Converting fq para

Re: Converting fq params to Filter object

2012-12-27 Thread Erik Hatcher
Apologies for misunderstanding. Does what you're trying to do already work this way using the maxCollationTries feature of the spellcheck component? It looks like it passes through the fq's even, so that the hit co

Re: Converting fq params to Filter object

2012-12-27 Thread Nalini Kartha
Hi Eric, Sorry, I think I wasn't very clear in explaining what we need to do. We don't really need to do any complicated overriding, just want to change the DirectSpellChecker to issue a query for every correction it finds *with fq params from the original query taken into account* so that we can

Re: Converting fq params to Filter object

2012-12-27 Thread Erik Hatcher
I think the answer is yes, that there's a better way to doing all of this. But I'm not yet sure what this all entails in your situation. What are you overriding with the Lucene searches? I imagine Solr has the flexibility to handle what you're trying to do without overriding anything core in

Re: Converting fq params to Filter object

2012-12-27 Thread Nalini Kartha
Hi Lance, Thanks for the response. I didn't quite understand how to issue the queries from DirectSpellChecker with the fq params applied like you were suggesting - could you point me to the API that can be used for this? Also, we haven't benchmarked the DirectSpellChecker against the IndexBasedS

Re: Converting fq params to Filter object

2012-12-26 Thread Lance Norskog
A Solr facet query does a boolean query, caches the Lucene facet data structure, and uses it as a Lucene filter. After that until you do a full commit, using the same fq=string (you must match the string exactly) fetches the cached data structure and uses it again as a Lucene filter. Have you

Re: Converting fq params to Filter object

2012-12-26 Thread Nalini Kartha
Hi Otis, Sorry, let me be more specific. The end goal is for the DirectSpellChecker to make sure that the corrections it is returning will return some results taking into account the fq params included in the original query. This is a follow up question to another question I had posted earlier -

Re: Converting fq params to Filter object

2012-12-26 Thread Otis Gospodnetic
Hi, The fq *is* for filtering. What is your end goal, what are you trying to achieve? Otis Solr & ElasticSearch Support http://sematext.com/ On Dec 26, 2012 11:22 AM, "Nalini Kartha" wrote: > Hi, > > I'm trying to figure out how to convert the fq params that are being passed > to Solr into som