Skip to content

Allows query parameters to match on a substring. Ex q=body:{body}#428

Merged
spencergibb merged 1 commit intomasterfrom
query-substring
Aug 5, 2016
Merged

Allows query parameters to match on a substring. Ex q=body:{body}#428
spencergibb merged 1 commit intomasterfrom
query-substring

Conversation

@codefromthecrypt
Copy link
Copy Markdown
Contributor

This is to help develop apis like Elasticsearch which nest queries in
query parameters.

Fixes #424

This is to help develop apis like Elasticsearch which nest queries in
query parameters.

Fixes #424
@spencergibb
Copy link
Copy Markdown
Contributor

👍

@codefromthecrypt
Copy link
Copy Markdown
Contributor Author

codefromthecrypt commented Aug 4, 2016 via email

@jaylucas
Copy link
Copy Markdown

jaylucas commented Aug 5, 2016

Woooo 👍

@spencergibb spencergibb merged commit f350c65 into master Aug 5, 2016
@codefromthecrypt
Copy link
Copy Markdown
Contributor Author

codefromthecrypt commented Aug 5, 2016 via email

@spencergibb
Copy link
Copy Markdown
Contributor

I will try it in a bit.

@spencergibb
Copy link
Copy Markdown
Contributor

@bgdennis
Copy link
Copy Markdown

I wanted to try using Netflix Feign client for Elastic Search nested queries, I tried with single input and works fine , in my case I wanted to send a nested bool condition through Feign and the result throws me
"type": "search_phase_execution_exception",
"reason": "all shards failed",
"phase": "query",
"grouped": true,
"caused_by": {
"type": "parse_exception",
"reason": "Cannot parse 'body:{\n "query" : {\n "bool" : {\n "must" :[ {\n "terms" : {\n "name.key" : [97 ]\n }\n },\n {\n \t\t"term" : {"promotingCountries.key" : 234}\n }\n ]\n }\n}\n}': Encountered " <RANGE_GOOP> ": "" at line 1, column 17.\nWas expecting:\n "TO" ...\n ",
"caused_by": {
"type": "parse_exception",
"reason": "Encountered " <RANGE_GOOP> ": "" at line 1, column 17.\nWas expecting:\n "TO" ...\n "
}
}

@bgdennis
Copy link
Copy Markdown

Does Feign Rest client be used for elastic search nested queires ? Any help on this

@velo velo deleted the query-substring branch May 5, 2018 22:31
velo pushed a commit that referenced this pull request Oct 7, 2024
This is to help develop apis like Elasticsearch which nest queries in
query parameters.

Fixes #424
velo pushed a commit that referenced this pull request Oct 8, 2024
This is to help develop apis like Elasticsearch which nest queries in
query parameters.

Fixes #424
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants