mirror of
https://github.com/typeable/bloodhound.git
synced 2024-09-11 08:25:32 +03:00
Added documentation links on fuzziness
This commit is contained in:
parent
16320685d5
commit
5bc6bb3a96
@ -18,9 +18,13 @@
|
|||||||
- Add the "stemmer" and "stop" [token filters][] to `TokenFilterDefinition`.
|
- Add the "stemmer" and "stop" [token filters][] to `TokenFilterDefinition`.
|
||||||
- @ahodgen
|
- @ahodgen
|
||||||
- Add support for wildcard queries
|
- Add support for wildcard queries
|
||||||
|
- @ashutoshrishi
|
||||||
|
- Added [fuzziness][] option to a Match Query
|
||||||
|
- Added support for "AUTO" Fuzziness alongside a numeric value.
|
||||||
|
|
||||||
[Character Filters]: https://www.elastic.co/guide/en/elasticsearch/reference/5.6/analysis-charfilters.html
|
[Character Filters]: https://www.elastic.co/guide/en/elasticsearch/reference/5.6/analysis-charfilters.html
|
||||||
[Token Filters]: https://www.elastic.co/guide/en/elasticsearch/reference/5.6/analysis-tokenfilters.html
|
[Token Filters]: https://www.elastic.co/guide/en/elasticsearch/reference/5.6/analysis-tokenfilters.html
|
||||||
|
[Fuzziness]: https://www.elastic.co/guide/en/elasticsearch/reference/current/common-options.html#fuzziness
|
||||||
|
|
||||||
0.15.0.2
|
0.15.0.2
|
||||||
========
|
========
|
||||||
|
@ -9,12 +9,12 @@ module Database.V5.Bloodhound.Internal.Query
|
|||||||
|
|
||||||
import Bloodhound.Import
|
import Bloodhound.Import
|
||||||
|
|
||||||
import Data.Char (isNumber)
|
import Data.Char (isNumber)
|
||||||
import qualified Data.HashMap.Strict as HM
|
import qualified Data.HashMap.Strict as HM
|
||||||
import Data.List (nub)
|
import Data.List (nub)
|
||||||
import qualified Data.Text as T
|
import qualified Data.Text as T
|
||||||
|
|
||||||
import Database.Bloodhound.Common.Script as X
|
import Database.Bloodhound.Common.Script as X
|
||||||
import Database.V5.Bloodhound.Internal.Newtypes
|
import Database.V5.Bloodhound.Internal.Newtypes
|
||||||
|
|
||||||
data Query =
|
data Query =
|
||||||
@ -1625,7 +1625,9 @@ fieldTagged f o = case HM.toList o of
|
|||||||
[(k, Object o')] -> f (FieldName k) o'
|
[(k, Object o')] -> f (FieldName k) o'
|
||||||
_ -> fail "Expected object with 1 field-named key"
|
_ -> fail "Expected object with 1 field-named key"
|
||||||
|
|
||||||
{-| Fuzziness value as a number or 'AUTO'. -}
|
-- | Fuzziness value as a number or 'AUTO'.
|
||||||
|
-- See:
|
||||||
|
-- https://www.elastic.co/guide/en/elasticsearch/reference/current/common-options.html#fuzziness
|
||||||
data Fuzziness = Fuzziness Double | FuzzinessAuto
|
data Fuzziness = Fuzziness Double | FuzzinessAuto
|
||||||
deriving (Eq, Show)
|
deriving (Eq, Show)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user