RE: how to achieve filters

2010-05-20 Thread Doddamani, Prakash
Oops my bad, Thanks much -Original Message- From: Ahmet Arslan [mailto:iori...@yahoo.com] Sent: Thursday, May 20, 2010 4:31 PM To: solr-user@lucene.apache.org Subject: RE: how to achieve filters > > And the request I am passing is > /solr/select?indent=on&version=

RE: how to achieve filters

2010-05-20 Thread Ahmet Arslan
> > And the request I am passing is > /solr/select?indent=on&version=2.2&q=rock&fq={!field%20f=content}mp3&fq:bitrate:[* > TO 127] > &start=0&rows=10&fl=*%2Cscore&qt=dismax&wt=standard&explainOther=&hl.fl > > Still I am seeing documents above bitarate 127 There is a typo instead of fq: there

RE: how to achieve filters

2010-05-20 Thread Doddamani, Prakash
cuments above bitarate 127 Regards Prakash -Original Message- From: Ahmet Arslan [mailto:iori...@yahoo.com] Sent: Thursday, May 20, 2010 4:09 PM To: solr-user@lucene.apache.org Cc: Doddamani, Prakash Subject: RE: how to achieve filters > I am getting Error in Solr > Error loading cla

RE: how to achieve filters

2010-05-20 Thread Ahmet Arslan
> I am getting Error in Solr > Error loading class 'Solr.TrieField' > > I have added following in Types of schema file > > omitNorms="true" /> > > And in custom fields of schema have added > > stored="true" /> >     > I am using solr version 1.3 cant I handle filter(my example > bitrate) wi

RE: how to achieve filters

2010-05-20 Thread Doddamani, Prakash
p.aol.com] Sent: Tuesday, May 18, 2010 8:44 PM To: solr-user@lucene.apache.org Subject: RE: how to achieve filters Thanks much Ahmet, Yep content is string, and bitrate is int. I am digging more now Can we combine both the scenarios. q=rock&fq={!field f=content}mp3 q=rock&fq:bitrate:[*

RE: how to achieve filters

2010-05-18 Thread Ahmet Arslan
> q=rock&fq:bitrate:[* TO 128] > > bitrate is int > This also return docs with more then 128 bitrate, Is there > something I am doing wrong If you are using solr 1.4.0 you need to use

RE: how to achieve filters

2010-05-18 Thread Doddamani, Prakash
Thanks Ahmet, Let me try these options Regards Prakash -Original Message- From: Ahmet Arslan [mailto:iori...@yahoo.com] Sent: Tuesday, May 18, 2010 9:06 PM To: solr-user@lucene.apache.org Subject: RE: how to achieve filters > Yep content is string, and bitrate is int. bitr

RE: how to achieve filters

2010-05-18 Thread Doddamani, Prakash
user@lucene.apache.org Subject: RE: how to achieve filters Thanks much Ahmet, Yep content is string, and bitrate is int. I am digging more now Can we combine both the scenarios. q=rock&fq={!field f=content}mp3 q=rock&fq:bitrate:[* TO 128] Say if I want only mp3 from 0 to 128 Reg

RE: how to achieve filters

2010-05-18 Thread Ahmet Arslan
> Yep content is string, and bitrate is int. bitrate should be trie based tint, not int, for range queries work correctly. > I am digging more now Can we combine both the scenarios. > > q=rock&fq={!field f=content}mp3 > q=rock&fq:bitrate:[* TO 128] > > Say if I want only mp3 from 0 to 128 You

RE: how to achieve filters

2010-05-18 Thread Doddamani, Prakash
lto:iori...@yahoo.com] Sent: Tuesday, May 18, 2010 8:24 PM To: solr-user@lucene.apache.org Subject: Re: how to achieve filters > I am using "dismax" query to fetch docs from solr where I have set > some boost to the each fields, > > > > If I search for query &

Re: how to achieve filters

2010-05-18 Thread Michael Kuhlmann
Am 18.05.2010 16:54, schrieb Ahmet Arslan: >> 2. Query=rock where bitrate<128 where it should return >> only first and third docs where bitrate<128 > > &q=rock&fq:bitrate:[* TO 128] for this bitrate field must be tint type. > &q=rock&fq:bitrate:[* TO 127] would be better, because bitrate should

Re: how to achieve filters

2010-05-18 Thread Ahmet Arslan
> I am using "dismax" query to fetch docs from solr where I > have set some > boost to the each fields, > > > > If I search for query "Rock" I get following docs with some > boost value > which I have specified, > > > > >   19.494072 >   120 >   mp3 >   Rock >   1 >   st name 1 > > >   1