From 64f97adef1400f77dfe89beb39e8568cae16b760 Mon Sep 17 00:00:00 2001 From: ines Date: Sun, 18 Feb 2018 14:13:58 +0100 Subject: [PATCH 1/3] Document new Matcher.pipe keyword args [ci skip] See 1cf774bdc17b9f60e53c008d67fabfb164e84353 --- website/api/matcher.jade | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/website/api/matcher.jade b/website/api/matcher.jade index 2418dd2fa..f32b0f372 100644 --- a/website/api/matcher.jade +++ b/website/api/matcher.jade @@ -111,6 +111,23 @@ p Match a stream of documents, yielding them in turn. | parallel, if the #[code Matcher] implementation supports | multi-threading. + +row + +cell #[code return_matches] + +cell bool + +cell + | Yield the match lists along with the docs, making results + | #[code (doc, matches)] tuples. + + +row + +cell #[code as_tuples] + +cell bool + +cell + | Interpret the input stream as #[code (doc, context)] tuples, and + | yield #[code (result, context)] tuples out. If both + | #[code return_matches] and #[code as_tuples] are #[code True], + | the output will be a sequence of + | #[code ((doc, matches), context)] tuples. + +row("foot") +cell yields +cell #[code Doc] From ca2fcad5a385195896f9a6e7d42a7edf4d4092af Mon Sep 17 00:00:00 2001 From: ines Date: Sun, 18 Feb 2018 14:15:18 +0100 Subject: [PATCH 2/3] Add v2.1 tag to new arguments [ci skip] --- website/api/matcher.jade | 2 ++ 1 file changed, 2 insertions(+) diff --git a/website/api/matcher.jade b/website/api/matcher.jade index f32b0f372..00260a109 100644 --- a/website/api/matcher.jade +++ b/website/api/matcher.jade @@ -113,6 +113,7 @@ p Match a stream of documents, yielding them in turn. +row +cell #[code return_matches] + +tag-new(2.1) +cell bool +cell | Yield the match lists along with the docs, making results @@ -120,6 +121,7 @@ p Match a stream of documents, yielding them in turn. +row +cell #[code as_tuples] + +tag-new(2.1) +cell bool +cell | Interpret the input stream as #[code (doc, context)] tuples, and From 29106ec74088a3cef6cb414c09806693736dcd00 Mon Sep 17 00:00:00 2001 From: ines Date: Sun, 18 Feb 2018 14:16:26 +0100 Subject: [PATCH 3/3] Add "new" tag to is_currency [ci skip] --- website/api/lexeme.jade | 1 + website/api/token.jade | 1 + 2 files changed, 2 insertions(+) diff --git a/website/api/lexeme.jade b/website/api/lexeme.jade index 7b542303a..b1e63d378 100644 --- a/website/api/lexeme.jade +++ b/website/api/lexeme.jade @@ -327,6 +327,7 @@ p The L2 norm of the lexeme's vector representation. +row +cell #[code is_currency] + +tag-new("2.0.8") +cell bool +cell Is the lexeme a currency symbol? diff --git a/website/api/token.jade b/website/api/token.jade index 624e99ef1..ca237acc6 100644 --- a/website/api/token.jade +++ b/website/api/token.jade @@ -742,6 +742,7 @@ p The L2 norm of the token's vector representation. +row +cell #[code is_currency] + +tag-new("2.0.8") +cell bool +cell Is the token a currency symbol?