Elasticsearch: Include facet values?

Elasticsearch provides parameter to exclude certain facets from facets
values like this.

"facets" : {
"tag" : {
"terms" : {
"field" : "tag",
"exclude" : ["term1", "term2"]
}
}
}

Is it possible not to exclude, but include certain facet values?

Thanks

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Hey,

you could do that using a regex instead of excludes. See

On Mon, Apr 15, 2013 at 7:31 PM, Samuel Molnar molnar.samuel@gmail.comwrote:

Elasticsearch provides parameter to exclude certain facets from facets
values like this.

"facets" : {
"tag" : {
"terms" : {
"field" : "tag",
"exclude" : ["term1", "term2"]
}
}
}

Is it possible not to exclude, but include certain facet values?

Thanks

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

yes, but i need to get facets for the documents and also include other
specific (selected, if you will) values that are in the list of facets but
have low count, so they wont be in result list.

Consider following situation: You want global facets of words for documents
and you selected e.g. word science with count 10. But if you recieve
global facets, you get words with counts higher than e.g. 4000. I need to
get the global facets along with selected ones.

Is there any way how i can do that?

Dňa pondelok, 15. apríla 2013 19:57:27 UTC+2 Alexander Reelsen napísal(-a):

Hey,

you could do that using a regex instead of excludes. See
Elasticsearch Platform — Find real-time answers at scale | Elastic

On Mon, Apr 15, 2013 at 7:31 PM, Samuel Molnar <molnar...@gmail.com<javascript:>

wrote:

Elasticsearch provides parameter to exclude certain facets from facets
values like this.

"facets" : {
"tag" : {
"terms" : {
"field" : "tag",
"exclude" : ["term1", "term2"]
}
}
}

Is it possible not to exclude, but include certain facet values?

Thanks

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearc...@googlegroups.com <javascript:>.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

I would also love to have such functionality. I think you can work around
it by having two facets on the the same field - one with filter to include
desired values and the other without. Then you can combine their results
using any logic/ordering you want

Alex

On Monday, April 15, 2013 2:19:14 PM UTC-4, Samuel Molnar wrote:

yes, but i need to get facets for the documents and also include other
specific (selected, if you will) values that are in the list of facets but
have low count, so they wont be in result list.

Consider following situation: You want global facets of words for
documents and you selected e.g. word science with count 10. But if you
recieve global facets, you get words with counts higher than e.g. 4000. I
need to get the global facets along with selected ones.

Is there any way how i can do that?

Dňa pondelok, 15. apríla 2013 19:57:27 UTC+2 Alexander Reelsen napísal(-a):

Hey,

you could do that using a regex instead of excludes. See
Elasticsearch Platform — Find real-time answers at scale | Elastic

On Mon, Apr 15, 2013 at 7:31 PM, Samuel Molnar molnar...@gmail.comwrote:

Elasticsearch provides parameter to exclude certain facets from facets
values like this.

"facets" : {
"tag" : {
"terms" : {
"field" : "tag",
"exclude" : ["term1", "term2"]
}
}
}

Is it possible not to exclude, but include certain facet values?

Thanks

--
You received this message because you are subscribed to the Google
Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to elasticsearc...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.