-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from mikegoatly/v3.0.0
V3.0.0
- Loading branch information
Showing
94 changed files
with
4,279 additions
and
1,338 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -330,3 +330,5 @@ ASALocalRun/ | |
|
||
# MFractors (Xamarin productivity tool) working folder | ||
.mfractor/ | ||
|
||
.hugo_build.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
docs/content/en/docs/Index construction/WithQueryParser.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
title: "WithQueryParser" | ||
linkTitle: "WithQueryParser" | ||
weight: 5 | ||
description: > | ||
Prescribes how the QueryParser implementation should be configured for the index. | ||
--- | ||
|
||
## Providing a complete `IQueryParser` implementation | ||
|
||
`FullTextIndexBuilder<TKey> WithQueryParser(IQueryParser queryParser)` | ||
|
||
Allows you to provide your own implementation of `IQueryParser` capable of parsing text into an `IQuery`. | ||
|
||
## Configuring the default LIFTI `QueryParser` | ||
|
||
`FullTextIndexBuilder<TKey> WithQueryParser(Func<QueryParserBuilder, QueryParserBuilder> optionsBuilder)` | ||
|
||
By default LIFTI parses query text using the [LIFTI query syntax](../searching). The behavior of the parser can | ||
be tweaked using this overload. | ||
|
||
`QueryParserBuilder.AssumeFuzzySearchTerms()` | ||
When used, uses fuzzy matching for any parsed search terms that don't contain | ||
wildcard operators, i.e. you don't need to prefix search terms with `?`. | ||
|
||
`QueryParserBuilder.WithQueryParserFactory(Func<QueryParserOptions, IQueryParser>)` | ||
Given a `QueryParserOptions`, creates the implementation of `IQueryParser`. You can use this to provide a | ||
custom query parsing strategy. | ||
|
||
### Example usage | ||
|
||
``` csharp | ||
var index = new FullTextIndexBuilder<int>() | ||
.WithQueryParser(o => o.AssumeFuzzySearch()) | ||
.Build(); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.