Re: Issue with Facet Query

2009-03-20 Thread Chris Hostetter
: I am using this query only but I am getting the same results. : : : facet=true&facet.field=productPrice_product_str_s&fq=productPrice_product_str_s:[1%20TO%20100] ... : It still is not showing up the other values. Do I need to make any entry in : schema or solrConfig xml files. Do I

Re: Issue with Facet Query

2009-03-20 Thread Shalin Shekhar Mangar
> >> 0 >> >> 0 >> >> 0 >> >> 0 >> >> 0 >> >> 0 >> >> 0 >> >> 0 >> >> 0 >> >> 0 >> >> 0 >> >> 0 >> >> 0 >> >> 0 >> >> 0 >> >> 0 >> >> 0 >> >> 0 >> >> 0 >> >> 0 >> >> 0 >> >> 0 >> >> 0 >> >> 0 >> >> 0 >> >> 0 >> >> 0 >> >> 0 >> >> 0 >> >> 0 >> >> 0 >> >> 0 >> >> 0 >> >> 0 >> >> 0 >> >> 0 >> >> 0 >> >> 0 >> >> 0 >> >> 0 >> >> 0 >> >> 0 >> >> 0 >> >> 0 >> >> 0 >> >> 0 >> >> >> >> It is only returning results, which are having values started with 2, >> 3, >> >> 4 >> >> or some other integer instead of only 1. It is not returning records in >> >> which value is >10 and <100. >> >> >> > >> > Please do not send a duplicate mails. It will not help you get an answer >> > faster. >> > >> > If you need to filter results to a specific range then you should use >> > filter >> > queries through the fq parameter: >> > >> > fq=productPrice_product_str_s:[0%20TO%20100] >> > >> > -- >> > Regards, >> > Shalin Shekhar Mangar. >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Issue-with-Facet-Query-tp22615577p22618714.html >> Sent from the Solr - User mailing list archive at Nabble.com. >> >> > > > -- > Regards, > Shalin Shekhar Mangar. > -- Regards, Shalin Shekhar Mangar.

Re: Issue with Facet Query

2009-03-20 Thread Shalin Shekhar Mangar
> 0 > >> 0 > >> 0 > >> 0 > >> 0 > >> 0 > >> 0 > >> 0 > >> 0 > >> 0 > >> 0 > >> 0 > >> 0 > >> 0 > >> 0 > >> 0 > >> 0 > >> 0 > >> 0 > >> 0 > >> 0 > >> 0 > >> 0 > >> 0 > >> 0 > >> > >> It is only returning results, which are having values started with 2, 3, > >> 4 > >> or some other integer instead of only 1. It is not returning records in > >> which value is >10 and <100. > >> > > > > Please do not send a duplicate mails. It will not help you get an answer > > faster. > > > > If you need to filter results to a specific range then you should use > > filter > > queries through the fq parameter: > > > > fq=productPrice_product_str_s:[0%20TO%20100] > > > > -- > > Regards, > > Shalin Shekhar Mangar. > > > > > > -- > View this message in context: > http://www.nabble.com/Issue-with-Facet-Query-tp22615577p22618714.html > Sent from the Solr - User mailing list archive at Nabble.com. > > -- Regards, Shalin Shekhar Mangar.

Re: Issue with Facet Query

2009-03-20 Thread dabboo
;> 0 >> 0 >> 0 >> 0 >> >> It is only returning results, which are having values started with 2, 3, >> 4 >> or some other integer instead of only 1. It is not returning records in >> which value is >10 and <100. >> > > Please do not send a duplicate mails. It will not help you get an answer > faster. > > If you need to filter results to a specific range then you should use > filter > queries through the fq parameter: > > fq=productPrice_product_str_s:[0%20TO%20100] > > -- > Regards, > Shalin Shekhar Mangar. > > -- View this message in context: http://www.nabble.com/Issue-with-Facet-Query-tp22615577p22618714.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Issue with Facet Query

2009-03-20 Thread Shalin Shekhar Mangar
On Fri, Mar 20, 2009 at 4:00 PM, dabboo wrote: > > Hi Shalin, > > One more thing, > > > facet.field=productPrice_product_str_s&facet.query=productPrice_product_str_s:[0%20TO%20100] > > This is my query and these are results, I am getting: > > 202 > 57 > 14 > 11 > 10 > 9 > 9 > 7 > 6 > 5 >

Re: Issue with Facet Query

2009-03-20 Thread dabboo
gt; facet.query returns the number of documents matching that query after >> applying any filters (fq) that you may have specified. >> >> Can you tell us your use-case? >> >> -- >> Regards, >> Shalin Shekhar Mangar. >> >> > > -- View this message in context: http://www.nabble.com/Issue-with-Facet-Query-tp22615577p22617745.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Issue with Facet Query

2009-03-20 Thread dabboo
> > facet.query returns the number of documents matching that query after > applying any filters (fq) that you may have specified. > > Can you tell us your use-case? > > -- > Regards, > Shalin Shekhar Mangar. > > -- View this message in context: http://www.nabble.com/Issue-with-Facet-Query-tp22615577p22616724.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Issue with Facet Query

2009-03-20 Thread Shalin Shekhar Mangar
On Fri, Mar 20, 2009 at 2:27 PM, dabboo wrote: > > Shalin, thanks a lot. One quick question: > > Now, after putting the query in the way, you suggested, I am getting: > > - > - > 23315 > > > > > > But it is not returning me records. Do I need to enter this field entry in > schema.xml t

Re: Issue with Facet Query

2009-03-20 Thread dabboo
ld >> I >> form my query. >> > > Use a filter query, fq=productPrice_product_str_s:[0 TO 20] > > -- > Regards, > Shalin Shekhar Mangar. > > -- View this message in context: http://www.nabble.com/Issue-with-Facet-Query-tp22615577p22616536.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Issue with Facet Query

2009-03-20 Thread Shalin Shekhar Mangar
On Fri, Mar 20, 2009 at 1:49 PM, dabboo wrote: > > Thanks a lot for this information. But is there any way, I can impose the > range on the facet. > for e.g. If I want to search the data between a specific range, how should > I > form my query. > Use a filter query, fq=productPrice_product_str_s

Re: Issue with Facet Query

2009-03-20 Thread dabboo
productPrice_product_str_s:[0%20TO%2020] >> > > facet.field takes a field name. It does not accept queries. Use > facet.query > for getting count of a query. Use fq to restrict facets by a certain > query. > > See http://wiki.apache.org/solr/SimpleFacetParameters > -- &

Re: Issue with Facet Query

2009-03-20 Thread Shalin Shekhar Mangar
On Fri, Mar 20, 2009 at 1:14 PM, dabboo wrote: > > Hi, > > I am searching the indexes with facet query. Below is the query. > > > q=Answer&version=2.2&start=0&rows=10&indent=on&qt=dismaxrequest&facet=true&facet.field=productPrice_product_str_s:[0%20TO%2020] > facet.field takes a field name. It d

Issue with Facet Query

2009-03-20 Thread dabboo
e specific entries, I need to make in any config file. Thanks a lot. Thanks, Amit Garg -- View this message in context: http://www.nabble.com/Issue-with-Facet-Query-tp22615577p22615577.html Sent from the Solr - User mailing list archive at Nabble.com.