Skip to content

Instantly share code, notes, and snippets.

@emmanuelbernard
Created March 14, 2011 11:15
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 emmanuelbernard/869005 to your computer and use it in GitHub Desktop.
Save emmanuelbernard/869005 to your computer and use it in GitHub Desktop.
FacetRequest rangeRequest = queryBuilder( Fruit.class ).facet()
.name( priceRange )
.onField( indexFieldName )
.range().below(1.0).excludeLimit()
.from( 1.0 ).to( 1.50 ).excludeLimit()
.from( 1.50 ).to( 3.00 ).excludeLimit()
.above(3)
.createFacet();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment