git.iko.soy/typeable/bloodhound
on master help sign in
documentate
76e1307Alex K
README.md+23−2
@@ -316,7 +316,7 @@ let sndOp = BulkIndex testIndex
316-- Some explanation, the final "Value" type that BulkIndex,
316-- Some explanation, the final "Value" type that BulkIndex,
317-- BulkCreate, and BulkUpdate accept is the actual document
317-- BulkCreate, and BulkUpdate accept is the actual document
318-- data that your operation applies to. BulkDelete doesn't
318-- 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
320-- you pass.
320-- you pass.
321
321
322-- list of bulk operations
322-- list of bulk operations
@@ -656,6 +656,28 @@ let filter = RangeFilter (FieldName "age")
656
656
657```
657```
658
658
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+
659#### Regexp Filter
681#### Regexp Filter
660
682
661``` {.haskell}
683``` {.haskell}
@@ -923,4 +945,3 @@ Photo Origin
923============
945============
924
946
925Photo from HA! Designs: <https://www.flickr.com/photos/hadesigns/>
947Photo from HA! Designs: <https://www.flickr.com/photos/hadesigns/>
926−