From d961302c85663c883735b8967f869de7c063c29e Mon Sep 17 00:00:00 2001 From: Oskar Dudycz Date: Tue, 12 Feb 2019 19:04:50 +0100 Subject: [PATCH] Fixed typos --- documentation/documentation/documents/querying/linq.md | 4 ++-- src/Marten/Linq/Parsing/FullTextSearchMethodCallParser.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/documentation/documentation/documents/querying/linq.md b/documentation/documentation/documents/querying/linq.md index d0fac0aa80..07453cba71 100644 --- a/documentation/documentation/documents/querying/linq.md +++ b/documentation/documentation/documents/querying/linq.md @@ -213,7 +213,7 @@ Use `TenantIsOneOf` to query on a selected list of tenants. ## Text Search -Postgres constains built in [Text Search functions](https://www.postgresql.org/docs/10/textsearch-controls.html). They enable the possibility to do more sophisticated searching through text fields. Marten gives possibility to define <[linkto:documentation/documents/configuration/full_text;title=Full Text Indexes]> and perform queries on them. +Postgres contains built in [Text Search functions](https://www.postgresql.org/docs/10/textsearch-controls.html). They enable the possibility to do more sophisticated searching through text fields. Marten gives possibility to define <[linkto:documentation/documents/configuration/full_text;title=Full Text Indexes]> and perform queries on them. Currently three types of full Text Search functions are supported: * regular Search (to_tsquery) @@ -232,7 +232,7 @@ All types of Text Searches can be combined with other Linq queries <[sample:text_search_combined_with_other_query_sample]> -They alow also to specify language (regConfig) of the text search query (by default `english` is being used) +They allow also to specify language (regConfig) of the text search query (by default `english` is being used) <[sample:text_search_with_non_default_regConfig_sample]> diff --git a/src/Marten/Linq/Parsing/FullTextSearchMethodCallParser.cs b/src/Marten/Linq/Parsing/FullTextSearchMethodCallParser.cs index a0016aa6e7..5660c78c61 100644 --- a/src/Marten/Linq/Parsing/FullTextSearchMethodCallParser.cs +++ b/src/Marten/Linq/Parsing/FullTextSearchMethodCallParser.cs @@ -38,7 +38,7 @@ public IWhereFragment Parse(IQueryableDocument mapping, ISerializer serializer, throw new ArgumentException("Search Term needs to be string", "searchTerm"); if (expression.Arguments.Count > 2 && expression.Arguments[2].Type != typeof(string)) - throw new ArgumentException("Reg config needs to be string", "searchTerm"); + throw new ArgumentException("Reg config needs to be string", "regConfig"); var searchTerm = (string)expression.Arguments[1].Value();