Skip to content

Instantly share code, notes, and snippets.

@gudata
Created July 15, 2011 11:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gudata/1084551 to your computer and use it in GitHub Desktop.
Save gudata/1084551 to your computer and use it in GitHub Desktop.
example of normal faceting
URL: http://user:passa@sandbox.example.com/v1/properties/?facet.mincount=1&facet.sort=count&f.sale_price.facet.sort=index&filter.city=London&facet.limit=-1&f.area_sqft.facet.sort=index&facet.field=sale_price&facet.field=property_types&facet.field=bedrooms&facet.field=bathrooms&facet.field=modified_at&facet.field=area_sqft&f.property_types.facet.sort=index&f.bedrooms.facet.sort=index&f.modified_at.facet.sort=index&f.area_sqft.facet.buckets=0%2C500%2C800%2C1000%2C1500%2C2000%2C2500%2C3000%2C4000%2C5000%2C%2A&sort=city+asc%2Csale_price+desc&filter.transaction=buy&f.bathrooms.facet.sort=index&f.sale_price.facet.buckets=0%2C100000%2C200000%2C300000%2C500000%2C750000%2C800000%2C1000000%2C1500000%2C2000000%2C%2A&f.modified_at.facet.buckets=2011-01-12T11%3A06%3A29Z%2C2011-04-14T12%3A06%3A29Z%2C2011-06-14T12%3A06%3A29Z%2C2011-07-01T12%3A06%3A29Z%2C2011-07-08T12%3A06%3A29Z%2C2011-07-12T12%3A06%3A29Z%2C2011-07-14T12%3A06%3A29Z%2C2011-07-15T12%3A06%3A29Z
Here is a readable dump of the URL
12:06:31 action_view http://localhost:3000/search?locale=en
12:06:31 action_view search[city]=London
12:06:31 action_view search[facets][][][][and][][count]=16
12:06:31 action_view search[facets][][][][and][][label]=2000000
12:06:31 action_view search[facets][][][][and][][negate]=false
12:06:31 action_view search[facets][][][][and][][query]=[16+TO+16]
12:06:31 action_view search[facets][][][][tag]=sale_price
12:06:31 action_view search[facets][][][][and][][count]=1
12:06:31 action_view search[facets][][][][and][][label]=6
12:06:31 action_view search[facets][][][][and][][negate]=false
12:06:31 action_view search[facets][][][][and][][query]=[1+TO+1]
12:06:31 action_view search[facets][][][][tag]=sale_price
12:06:31 action_view search[facets][][][][and][][count]=2
12:06:31 action_view search[facets][][][][and][][label]=7
12:06:31 action_view search[facets][][][][and][][negate]=false
12:06:31 action_view search[facets][][][][and][][query]=[2+TO+2]
12:06:31 action_view search[facets][][][][tag]=sale_price
12:06:31 action_view search[facets][][][][and][][count]=0
12:06:31 action_view search[facets][][][][and][][label]=1500000
12:06:31 action_view search[facets][][][][and][][negate]=false
12:06:31 action_view search[facets][][][][and][][query]=[0+TO+0]
12:06:31 action_view search[facets][][][][tag]=sale_price
12:06:31 action_view search[facets][][][][and][][count]=1
12:06:31 action_view search[facets][][][][and][][label]=300000
12:06:31 action_view search[facets][][][][and][][negate]=false
12:06:31 action_view search[facets][][][][and][][query]=[1+TO+1]
12:06:31 action_view search[facets][][][][tag]=sale_price
12:06:31 action_view search[location_id]=
12:06:31 action_view search[sale_price_from]=
12:06:31 action_view search[sale_price_to]=
12:06:31 action_view search[sort_city]=asc
12:06:31 action_view search[sort_sale_price]=desc
12:06:31 action_view search[transaction]=buy
12:06:31 action_view search[zip5]=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment