git.iko.soy/typeable/bloodhound
on master help sign in
documentate
commit76e130738095fadb5d29050293b7560d5a1a899f authorAlex K <alex@eat-up.org> dateThu 5 Feb 2015, 08:08 (12 years ago) parent1e1faf3
1 file changed+23−2
README.md+23−2
README.md+23−2
@@ -316,7 +316,7 @@ let sndOp = BulkIndex testIndex
316316-- Some explanation, the final "Value" type that BulkIndex,
317317-- BulkCreate, and BulkUpdate accept is the actual document
318318-- data that your operation applies to. BulkDelete doesn't
319−-- take a value because it's just deleting whatever DocId
319+-- take a value because it's just deleting whatever DocId
320320-- you pass.
321321
322322-- list of bulk operations
@@ -656,6 +656,28 @@ let filter = RangeFilter (FieldName "age")
656656
657657```
658658
659+##### Typed Ranges
660+
661+These look slightly different:
662+
663+``` {.haskell}
664+
665+-- RangeFilterText :: FieldName
666+-- -> RangeText
667+-- -> RangeExecution
668+-- -> Cache
669+
670+-- RangeFilterDouble :: FieldName
671+-- -> RangeDouble
672+-- -> RangeExecution
673+-- -> Cache
674+
675+let filter = RangeFilterDouble (FieldName "age")
676+ (RangeDoubleGtLt 1000.0 100000.0)
677+ RangeExecutionIndex False
678+
679+```
680+
659681#### Regexp Filter
660682
661683``` {.haskell}
@@ -923,4 +945,3 @@ Photo Origin
923945============
924946
925947Photo from HA! Designs: <https://www.flickr.com/photos/hadesigns/>
926−