Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Term Facet: Allow to execute it against several fields #405

Closed
mjsuhonos opened this issue Oct 4, 2010 · 3 comments
Closed

Term Facet: Allow to execute it against several fields #405

mjsuhonos opened this issue Oct 4, 2010 · 3 comments

Comments

@mjsuhonos
Copy link

Term facet to allow to provide several fields to execute on. The format is simply to replace the "field" with "fields" that accepts an array of field names.

From discussion: http://groups.google.com/a/elasticsearch.com/group/users/browse_thread/thread/75b20f260549eabc

Sample use case:
Given:

"doc": {
    "desc": "some words here",
    "field" : "yet more text"
},
"doc": {
    "desc": "some more words",
    "field" : "even more words"
}

Return: "words" (3), "more" (3), "some" (2), "here" (1), "yet" (1), "text" (1), "even" (1)

@kimchy
Copy link
Member

kimchy commented Oct 6, 2010

implemented.

@otisg
Copy link

otisg commented Oct 8, 2010

i.e. add up counts from more than 1 field? Cool.

@kimchy
Copy link
Member

kimchy commented Oct 8, 2010

yea. You can actually do that today by executing several facets on different field and given them the same name.

costin pushed a commit that referenced this issue Dec 6, 2022
🤖 ESQL: Merge upstream
cbuescher pushed a commit to cbuescher/elasticsearch that referenced this issue Oct 2, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants