You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@nifi.apache.org by Buntu Dev <bu...@gmail.com> on 2017/05/01 22:25:55 UTC
QueryElasticSearch processor usage
Are there any sample templates to see how QueryElasticSearch processor can
be configured to run a query such as this:
Server: http://es-host.com:9200
POST some-index/_search
{
"fields": [
"some_field"
],
"size": 10,
"query": {
"exists":{
"field":"some_field"
}
}
}
When configuring the processor this way, I run into "Elasticsearch returned
code 400 with message Bad Request" error:
Whats the right way to configure the processor?
Thanks!
Re: QueryElasticSearch processor usage
Posted by Buntu Dev <bu...@gmail.com>.
Thanks Chad, will try using the InvokeHTTP to see if that helps.
On Mon, May 1, 2017 at 6:38 PM, Chad Zobrisky <cz...@gmail.com> wrote:
> Hello,
>
> Currently there is no way to do an advanced URL query or JSON body query
> through nifi. The only current option is using the Lucene query language
> to search for documents. This is similar to searching on the "Discover"
> page of Kibana.
>
> This functionality should be in nifi and there is currently an open
> ticket[1] for adding the elasticsearch query DSL.
>
> Thank you,
> Chad Zobrisky
> chad@nifi.rocks
> www.nifi.rocks - Nifi tutorials and how tos
>
> [1] https://issues.apache.org/jira/browse/NIFI-3263
>
>
>
> On Mon, May 1, 2017 at 6:26 PM Buntu Dev <bu...@gmail.com> wrote:
>
>> Are there any sample templates to see how QueryElasticSearch processor
>> can be configured to run a query such as this:
>>
>> Server: http://es-host.com:9200
>> POST some-index/_search
>> {
>> "fields": [
>> "some_field"
>> ],
>> "size": 10,
>> "query": {
>> "exists":{
>> "field":"some_field"
>> }
>> }
>> }
>>
>> When configuring the processor this way, I run into "Elasticsearch
>> returned code 400 with message Bad Request" error:
>>
>> [image: Screen Shot 2017-05-01 at 3.23.17 PM.png]
>>
>>
> Whats the right way to configure the processor?
>>
>>
>> Thanks!
>>
>>
>>
>>
Re: QueryElasticSearch processor usage
Posted by Chad Zobrisky <cz...@gmail.com>.
Hello,
Currently there is no way to do an advanced URL query or JSON body query
through nifi. The only current option is using the Lucene query language
to search for documents. This is similar to searching on the "Discover"
page of Kibana.
This functionality should be in nifi and there is currently an open
ticket[1] for adding the elasticsearch query DSL.
Thank you,
Chad Zobrisky
chad@nifi.rocks
www.nifi.rocks - Nifi tutorials and how tos
[1] https://issues.apache.org/jira/browse/NIFI-3263
On Mon, May 1, 2017 at 6:26 PM Buntu Dev <bu...@gmail.com> wrote:
> Are there any sample templates to see how QueryElasticSearch processor can
> be configured to run a query such as this:
>
> Server: http://es-host.com:9200
> POST some-index/_search
> {
> "fields": [
> "some_field"
> ],
> "size": 10,
> "query": {
> "exists":{
> "field":"some_field"
> }
> }
> }
>
> When configuring the processor this way, I run into "Elasticsearch
> returned code 400 with message Bad Request" error:
>
> [image: Screen Shot 2017-05-01 at 3.23.17 PM.png]
>
>
Whats the right way to configure the processor?
>
>
> Thanks!
>
>
>
>