We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c5c3a8 commit b4dbf55Copy full SHA for b4dbf55
Models/Elasticsearch/CapitalSearchDocument.cs
@@ -57,7 +57,7 @@ public CapitalSearchDocument(CapitalCityRecord record)
57
[Keyword]
58
public string City { get; set; }
59
60
- [Object(Store = true, Enabled = false)]
+ [Object(Enabled = false)]
61
public CapitalCityRecord Data { get; set; }
62
63
// store location
Pages/Index.cshtml.cs
@@ -32,9 +32,10 @@ public void OnGet()
32
Search =
33
client.Search<CapitalSearchDocument>(s =>
34
s.Query(q => q
35
- .MatchPhrasePrefix(m => m
+ .Match(m => m
36
.Field(f => f.Names)
37
.Query(Term)
38
+ .Fuzziness(Fuzziness.EditDistance(1))
39
)
40
41
.Take(10)
0 commit comments