Skip to content

Commit

Permalink
v1.1.0; Fixed issue where FtsQuery constructor argument did not add t…
Browse files Browse the repository at this point in the history
…he standard stop words.
  • Loading branch information
SoftCircuits committed Oct 2, 2020
1 parent 79ae9c6 commit deba49d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions FullTextSearchQuery/FtsQuery.cs
Expand Up @@ -62,13 +62,16 @@ public class FtsQuery
/// <summary>
/// Constructs an <see cref="FtsQuery"></see> instance.
/// </summary>
/// <param name="addStandardStopWords">If true, the standard stopwords
/// <param name="addStandardStopWords">If true, the standard list of stopwords
/// are added to the stopword list.</param>
public FtsQuery(bool addStandardStopWords = false)
{
StopWords = new HashSet<string>(StringComparer.OrdinalIgnoreCase);
if (addStandardStopWords)
StopWords.CopyTo(StandardStopWords.StopWords);
{
foreach (string stopword in StandardStopWords.StopWords)
StopWords.Add(stopword);
}
}

/// <summary>
Expand Down
6 changes: 3 additions & 3 deletions FullTextSearchQuery/FullTextSearchQuery.csproj
Expand Up @@ -10,13 +10,13 @@
<Copyright>Copyright © 2019-2020 SoftCircuits</Copyright>
<PackageLicenseFile>License.txt</PackageLicenseFile>
<PackageTags>full-text-search full-text full text search query fulltext sql-server</PackageTags>
<PackageReleaseNotes>1.0.2; Reworked documentation; Additional testing and code review; Minor tweaks; Added package icon.</PackageReleaseNotes>
<PackageReleaseNotes>Fixed issue where FtsQuery constructor argument did not add the standard stop words.</PackageReleaseNotes>
<NeutralLanguage>en-US</NeutralLanguage>
<RepositoryType>git</RepositoryType>
<Description>Full Text Search Query is a .NET class library that converts a user-friendly search term into a valid Microsoft SQL Server full-text-search query. The code attempts to gracefully handle all syntax that would cause SQL Server to generate an error.</Description>
<Description>Full Text Search Query is a .NET class library that converts a user-friendly search term into a valid Microsoft SQL Server full-text-search query. The code attempts to gracefully handle all syntax cases that would cause SQL Server to generate an error.</Description>
<PackageProjectUrl>https://github.com/SoftCircuits/FullTextSearchQuery</PackageProjectUrl>
<RepositoryUrl>https://github.com/SoftCircuits/FullTextSearchQuery</RepositoryUrl>
<Version>1.0.2</Version>
<Version>1.1.0</Version>
<PackageIcon>Logo_64x64.png</PackageIcon>
<PackageIconUrl />
</PropertyGroup>
Expand Down
Binary file modified Logo_64x64.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit deba49d

Please sign in to comment.