Skip to content

Commit

Permalink
Update facet with specific value
Browse files Browse the repository at this point in the history
  • Loading branch information
bjarnef authored Sep 27, 2023
1 parent 0c91439 commit 15d4608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/searching.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ Filtered value example
var searcher = myIndex.Searcher;
var results = searcher.CreateQuery()
.Field("Address", "Hills")
.WithFacets(facets => facets.FacetString("Address", "Hills")) // Get facets of the Address field with specific value
.WithFacets(facets => facets.FacetString("Address", null, new[] { "Hills" })) // Get facets of the Address field with specific value
.Execute();

var addressFacetResults = results.GetFacet("Address"); // Returns the facets for the specific field Address
Expand Down

0 comments on commit 15d4608

Please sign in to comment.