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

Question about : Derivequeries, exclude terms on "not_analyzed" field #192

Closed
jsm-oxa opened this issue Jun 28, 2013 · 2 comments
Closed

Comments

@jsm-oxa
Copy link

jsm-oxa commented Jun 28, 2013

Hi,

Derivequeries is very awesome I set the @fields.request at 'not_analyzed' to get a top 50. Results are very cool !

But with "not_analyzed" I can't exclude images terms request for example (png, jpg...). But I can do it by using the query :
"NOT @fields.request:_png AND NOT @fields.request:_jpg AND NOT @fields.request:php"

Is there a way to "Exclude Terms(s) (comma seperated)" of a not_analyzed field ?
By using multi field ?


"request" : { 
    "type": "multi_field",
    "fields" : {
          "request" : { type": "string", "index": "not_analyzed", "omit_norms": true, "index_options": "docs" },
          "request_analyzed" : { type": "string", "index": "analyzed" }
    }
}

But as "request" is the default field and it is not analyzed, the problem is still the same...

Of course I try to search on google, some queries as :
"elasticsearch facets terms "exclude" "not_analyzed" field"

Thank you !

@rashidkpc
Copy link
Contributor

Hmm, I can't really think of a way to do this unfortunately.

@rashidkpc
Copy link
Contributor

This unfortunately is just not possible, also derivequeries has been removed.

spalger pushed a commit to spalger/kibana that referenced this issue Mar 3, 2016
Optimizing timeline generation upon refresh.
Optimizing marker calculation
Changing date format of markers to work internationally
Closes elastic#192
harper-carroll pushed a commit to harper-carroll/kibana that referenced this issue Jul 11, 2016
w33ble added a commit to w33ble/kibana that referenced this issue Sep 13, 2018
* fix: don't add font size or color if not in args

fixes issue where size would be set to 'undefinedpx', and color would be undefined

* fix: prevent top-level undefined values

since this is just an object, and it is not serialized on the the client, it ends up creating properties with an undefined value

* fix: serialize and unserialize the result plot function

this shouldn't work, but it does, and so i'm putting it into master. #YOLO
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

2 participants