Skip to content

Commit

Permalink
Fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
oskardudycz committed Feb 12, 2019
1 parent 09f2634 commit d961302
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions documentation/documentation/documents/querying/linq.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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]>

Expand Down
2 changes: 1 addition & 1 deletion src/Marten/Linq/Parsing/FullTextSearchMethodCallParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit d961302

Please sign in to comment.