Did this work before the patch ? This patch only changes facet.field and not ranges. Send the whole URL you are sensing to Solr.
Bill Bell Sent from mobile On Aug 10, 2011, at 1:55 AM, "Trinh Trung Kien (JIRA)" <j...@apache.org> wrote: > > [ > https://issues.apache.org/jira/browse/SOLR-2242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13082216#comment-13082216 > ] > > Trinh Trung Kien commented on SOLR-2242: > ---------------------------------------- > > Hi, > > I apply the patch using SOLR 4.0 revision 1140474. The patch seem working OK > but i observe several issues: > > - I have one field indexed as integer: > <field name="cell_id" type="integer" indexed="true" stored="true"/> > > When I search for cell_id:[900 TO 1000], there is no result (actually I have > lots of data with cell_id between 900 to 1000) > Then I search for cell_id:[1000 TO *], this should return data which have > cell_id>=1000, however they return me all the records, the condition seems > don't have that meaning. > > Can you confirm that i'm using the correct version and revision? > > here is my svn info for the trunk: > > URL: http://svn.apache.org/repos/asf/lucene/dev/trunk > Repository Root: http://svn.apache.org/repos/asf > Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68 > Revision: 1140474 > Node Kind: directory > Schedule: normal > Last Changed Author: chrism > Last Changed Rev: 1140408 > Last Changed Date: 2011-06-27 21:52:53 -0500 (Mon, 27 Jun 2011) > > > > > > >> Get distinct count of names for a facet field >> --------------------------------------------- >> >> Key: SOLR-2242 >> URL: https://issues.apache.org/jira/browse/SOLR-2242 >> Project: Solr >> Issue Type: New Feature >> Components: Response Writers >> Affects Versions: 4.0 >> Reporter: Bill Bell >> Assignee: Simon Willnauer >> Priority: Minor >> Fix For: 4.0 >> >> Attachments: NumFacetTermsFacetsTest.java, >> SOLR-2242-notworkingtest.patch, SOLR-2242.patch, SOLR-2242.patch, >> SOLR-2242.shard.patch, SOLR-2242.shard.patch, >> SOLR-2242.shard.withtests.patch, SOLR-2242.solr3.1.patch, >> SOLR.2242.solr3.1.patch, SOLR.2242.v2.patch >> >> >> When returning facet.field=<name of field> you will get a list of matches >> for distinct values. This is normal behavior. This patch tells you how many >> distinct values you have (# of rows). Use with limit=-1 and mincount=1. >> The feature is called "namedistinct". Here is an example: >> http://localhost:8983/solr/select?shards=localhost:8983/solr,localhost:7574/solr&indent=true&q=*:*&facet=true&facet.mincount=1&facet.numFacetTerms=2&facet.limit=-1&facet.field=price >> http://localhost:8983/solr/select?shards=localhost:8983/solr,localhost:7574/solr&indent=true&q=*:*&facet=true&facet.mincount=1&facet.numFacetTerms=0&facet.limit=-1&facet.field=price >> http://localhost:8983/solr/select?shards=localhost:8983/solr,localhost:7574/solr&indent=true&q=*:*&facet=true&facet.mincount=1&facet.numFacetTerms=1&facet.limit=-1&facet.field=price >> This currently only works on facet.field. >> {code} >> <lst name="facet_fields"> >> <lst name="price"> >> <int name="numFacetTerms">14</int> >> <int name="0.0">3</int><int name="11.5">1</int><int >> name="19.95">1</int><int name="74.99">1</int><int name="92.0">1</int><int >> name="179.99">1</int><int name="185.0">1</int><int name="279.95">1</int><int >> name="329.95">1</int><int name="350.0">1</int><int name="399.0">1</int><int >> name="479.95">1</int><int name="649.99">1</int><int name="2199.0">1</int> >> </lst> >> </lst> >> {code} >> Several people use this to get the group.field count (the # of groups). > > -- > This message is automatically generated by JIRA. > For more information on JIRA, see: http://www.atlassian.com/software/jira > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org > For additional commands, e-mail: dev-h...@lucene.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org