|
@@ -10,7 +10,7 @@ Note, this is different compared to creating a `filtered` query with the
|
|
|
filter, since this will cause the facets to only process the filtered
|
|
|
results.
|
|
|
|
|
|
-For example, lets create two tweets, with two different tags:
|
|
|
+For example, let's create two tweets, with two different tags:
|
|
|
|
|
|
[source,js]
|
|
|
--------------------------------------------------
|
|
@@ -50,7 +50,7 @@ curl -XPOST 'localhost:9200/twitter/_search?pretty=true' -d '
|
|
|
--------------------------------------------------
|
|
|
|
|
|
We get two hits, and the relevant facets with a count of 1 for both
|
|
|
-`green` and `blue`. Now, lets say the `green` facet is chosen, we can
|
|
|
+`green` and `blue`. Now, let's say the `green` facet is chosen, we can
|
|
|
simply add a filter for it:
|
|
|
|
|
|
[source,js]
|
|
@@ -74,5 +74,5 @@ curl -XPOST 'localhost:9200/twitter/_search?pretty=true' -d '
|
|
|
|
|
|
And now, we get only 1 hit back, but the facets remain the same.
|
|
|
|
|
|
-Note, if additional filters is required on specific facets, they can be
|
|
|
+Note, if additional filters are required on specific facets, they can be
|
|
|
added as a `facet_filter` to the relevant facets.
|