lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jery Cook" <twoenc...@hotmail.com>
Subject RE: AW: Leading wildcards
Date Sat, 28 Apr 2007 13:18:16 GMT
Just cant figure this out, ...or do I have to do this programmatically?
 

Have a facet, and field in an document called estimatedRepairs, it is
declared in  the schema.xml as
 
<field name="estimatedRepairs" type="sfloat" indexed="true" stored="true"
multiValued="true"/>


 

I execute a query with the below parameters
 

q=state%3Avirgina;

&facet.query=estimatedRepairs:[*+TO+1000.0]

&facet.query=estimatedRepairs:[1000.0+TO+*]

&facet=true

&facet.field=state

&facet.field=country

&facet.field=zip

&facet.field=estimatedProfit

&facet.field=marketValue

&facet.field=numberOfBaths

&facet.field=numberOfBeds

&facet.field=price

&facet.field=type

&facet.limit=10

&facet.zeros=false

&facet.missing=false

&version=2.2

&debugQuery=true

 

 




However my results show

 

facet name: [estimatedRepairs] value count: [10]

[ListingApp] INFO [main]
ListingManagerImplTest.testCreateQueryFromSearchParams(186) |  count Name:
[24153.0] , count: [7]

[ListingApp] INFO [main]
ListingManagerImplTest.testCreateQueryFromSearchParams(186) |  count Name:
[1469.0] , count: [6]

[ListingApp] INFO [main]
ListingManagerImplTest.testCreateQueryFromSearchParams(186) |  count Name:
[4249.0] , count: [6]

[ListingApp] INFO [main]
ListingManagerImplTest.testCreateQueryFromSearchParams(186) |  count Name:
[16444.0] , count: [6]

[ListingApp] INFO [main]
ListingManagerImplTest.testCreateQueryFromSearchParams(186) |  count Name:
[21555.0] , count: [6]

[ListingApp] INFO [main]
ListingManagerImplTest.testCreateQueryFromSearchParams(186) |  count Name:
[23132.0] , count: [6]

[ListingApp] INFO [main]
ListingManagerImplTest.testCreateQueryFromSearchParams(186) |  count Name:
[25669.0] , count: [6]

[ListingApp] INFO [main]
ListingManagerImplTest.testCreateQueryFromSearchParams(186) |  count Name:
[26160.0] , count: [6]

[ListingApp] INFO [main]
ListingManagerImplTest.testCreateQueryFromSearchParams(186) |  count Name:
[27058.0] , count: [6]

[ListingApp] INFO [main]
ListingManagerImplTest.testCreateQueryFromSearchParams(186) |  count Name:
[171.0] , count: [5]

 

 

AND I DON'T WANT THIS. I want it to show Something like

by estimated Repairs.

1 to 1000[23]

1000 - 2000[53]

 
 

I thought facet.query allows me to do this? If not what will let SOLR
generate the query counts, for the results in intervals of 1000

 

Jeryl Cook
^ Pharaoh ^
http://pharaohofkush.blogspot.com/

"1f u c4n r34d th1s u r34lly n33d t0 g37 l41d "



 



Mime
View raw message