# Request for list of Elasticsearch operations only thru URL

**URL:** <https://discuss.elastic.co/t/request-for-list-of-elasticsearch-operations-only-thru-url/9240>\
**Category:** Elasticsearch\
**Created:** [October 4, 2012, 1:58pm UTC](https://discuss.elastic.co/t/request-for-list-of-elasticsearch-operations-only-thru-url/9240 "2012-10-04T13:58:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![shannu](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@shannu](https://discuss.elastic.co/u/shannu)\
**Post date:** [October 4, 2012, 1:58pm UTC](https://discuss.elastic.co/t/request-for-list-of-elasticsearch-operations-only-thru-url/9240/1 "2012-10-04T13:58:04Z")

</div>

Hello,

Is there a list elasticsearch operations that we can perform thru uri  
request ? If yes could someone point me to the location.

Also is it possible to add lucene syntax to the url,

for example:  
[http://es.XYZServer:9200/\_search?pretty=true{"query":{"term":"SampleText"}](http://es.XYZServer:9200/_search?pretty=true%7B%22query%22:%7B%22term%22:%22SampleText%22%7D)}

- // this doesnt work for me..

_Tried few other things and worked:_

1: Search for text:  
[http://es.XYZServer:9200/\_search?q=yoursearchword](http://es.XYZServer:9200/_search?q=yoursearchword)

2: Search for mulitple keywords(with OR):  
[http://es.XYZServer:9200/\_search?q=Keyword1](http://es.XYZServer:9200/_search?q=Keyword1) OR Keyword2 OR Keyword3

3: Search for mulitple keywords(with AND):  
[http://es.XYZServer:9200/\_search?q=Keyword1](http://es.XYZServer:9200/_search?q=Keyword1) AND Keyword2 AND Keyword3

4: Search for a specific document where the fieldvalue=xyz :  
[http://es.XYZServer:9200/\_search?q=\_source.FieldName=value](http://es.XYZServer:9200/_search?q=_source.FieldName=value)

5: perform step 4 with sort Enabled:  
[http://es.XYZServer:9200/\_search?q=\_source.FieldName=value&sort=fieldname](http://es.XYZServer:9200/_search?q=_source.FieldName=value&sort=fieldname)  
(by deafult its ascending)  
would like to know how I can change the order to desc ???

6: use Size to change the default(10) results list  
[http://es.XYZServer:9200/\_search?size=numeric](http://es.XYZServer:9200/_search?size=numeric) value(for example size=20)

7: Check the stats of the cluster:  
[http://es.XYZServer:9200/\_cluster/nodes/stats?pretty=true](http://es.XYZServer:9200/_cluster/nodes/stats?pretty=true)

Hope the above ElasticSearch REST URL Quick Reference will be useful for  
someone.

Would like to request if someone can post some more usefull uri requests  
that work.

would like to know how we can group by fieldname ?  
would like to know how I can change the sort order to desc ???  
filter results based on a datefield range ?  
how to delete documents if the index size is growing?

Thanks in Advance,  
Shannu.

--

---

<div class="post-metadata">

**Author:** ![Derry\_O\_Sullivan](https://avatars.discourse-cdn.com/v4/letter/d/7bcc69/32.png) [@Derry\_O\_Sullivan](https://discuss.elastic.co/u/Derry_O_Sullivan)\
**Post date:** [October 4, 2012, 3:03pm UTC](https://discuss.elastic.co/t/request-for-list-of-elasticsearch-operations-only-thru-url/9240/2 "2012-10-04T15:03:31Z")

</div>

Hi Shanu

On Thursday, 4 October 2012 14:58:04 UTC+1, shannu wrote:

> Hello,
> 
> Is there a list elasticsearch operations that we can perform thru uri  
> request ? If yes could someone point me to the location.
> 
> Also is it possible to add lucene syntax to the url,
> 
> for example: [http://es.XYZServer:9200/\_search?pretty=true{"query":{"term":"SampleText"}](http://es.XYZServer:9200/_search?pretty=true%7B%22query%22:%7B%22term%22:%22SampleText%22%7D)}
> 
> - // this doesnt work for me..

Worth checking out:

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

Query DSL is more what you want to use, i guess?

> _Tried few other things and worked:_
> 
> It's worth looking through the docs at (  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/)) as all these commands  
> and others are covered there.

> 1: Search for text:  
> [http://es.XYZServer:9200/\_search?q=yoursearchword](http://es.XYZServer:9200/_search?q=yoursearchword)
> 
> 2: Search for mulitple keywords(with OR):  
> [http://es.XYZServer:9200/\_search?q=Keyword1](http://es.XYZServer:9200/_search?q=Keyword1) OR Keyword2 OR Keyword3
> 
> 3: Search for mulitple keywords(with AND):  
> [http://es.XYZServer:9200/\_search?q=Keyword1](http://es.XYZServer:9200/_search?q=Keyword1) AND Keyword2 AND Keyword3
> 
> 4: Search for a specific document where the fieldvalue=xyz :  
> [http://es.XYZServer:9200/\_search?q=\_source.FieldName=value](http://es.XYZServer:9200/_search?q=_source.FieldName=value)
> 
> 5: perform step 4 with sort Enabled:  
> [http://es.XYZServer:9200/\_search?q=\_source.FieldName=value&sort=fieldname](http://es.XYZServer:9200/_search?q=_source.FieldName=value&sort=fieldname)(by deafult its ascending)  
> would like to know how I can change the order to desc ???
> 
> [http://es.XYZServer:9200/\_search?q=\_source.FieldName=value&sort=fieldname](http://es.XYZServer:9200/_search?q=_source.FieldName=value&sort=fieldname)[http://es.xyzserver:9200/\_search?q=\_source.FieldName=value&sort=fieldname](http://es.xyzserver:9200/_search?q=_source.FieldName=value&sort=fieldname)  
> _:desc_

also can do:  
[http://es.XYZServer:9200/\_search?q=FieldName:value&sort=fieldname](http://es.XYZServer:9200/_search?q=FieldName:value&sort=fieldname)[http://es.xyzserver:9200/\_search?q=\_source.FieldName=value&sort=fieldname](http://es.xyzserver:9200/_search?q=_source.FieldName=value&sort=fieldname)  
_:desc_

> 6: use Size to change the default(10) results list  
> [http://es.XYZServer:9200/\_search?size=numeric](http://es.XYZServer:9200/_search?size=numeric) value(for example size=20)
> 
> 7: Check the stats of the cluster:  
> [http://es.XYZServer:9200/\_cluster/nodes/stats?pretty=true](http://es.XYZServer:9200/_cluster/nodes/stats?pretty=true)
> 
> Hope the above Elasticsearch REST URL Quick Reference will be useful for  
> someone.
> 
> Would like to request if someone can post some more usefull uri requests  
> that work.
> 
> would like to know how we can group by fieldname ?

I'm not sure what you mean by grouping - you can probably use query DSL to  
filter/facet/query in any way you want

> would like to know how I can change the sort order to desc ???

as in example above: sort=fieldName:desc

filter results based on a datefield range ?

> 

See example in doc on github (section on searching):

> **[GitHub - elastic/elasticsearch: Free and Open, Distributed, RESTful Search...](https://github.com/elastic/elasticsearch)**
>
> Free and Open, Distributed, RESTful Search Engine. Contribute to elastic/elasticsearch development by creating an account on GitHub.

> how to delete documents if the index size is growing?

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

> Thanks in Advance,  
> Shannu.

--

---

<div class="post-metadata">

**Author:** ![shannu](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@shannu](https://discuss.elastic.co/u/shannu)\
**Post date:** [October 4, 2012, 3:15pm UTC](https://discuss.elastic.co/t/request-for-list-of-elasticsearch-operations-only-thru-url/9240/3 "2012-10-04T15:15:51Z")

</div>

Hi Derry,

Thanks a ton for the quick reply 🙂 Sort=fieldname:desc works perfectly  
fine...

will look at the other bits as well..

Once again many many thanks.

Cheers,  
Shannu.

On Thursday, October 4, 2012 4:03:31 PM UTC+1, Derry O' Sullivan wrote:

> Hi Shanu
> 
> On Thursday, 4 October 2012 14:58:04 UTC+1, shannu wrote:
> 
> > Hello,
> > 
> > Is there a list elasticsearch operations that we can perform thru uri  
> > request ? If yes could someone point me to the location.
> > 
> > Also is it possible to add lucene syntax to the url,
> > 
> > for example: [http://es.XYZServer:9200/\_search?pretty=true{"query":{"term":"SampleText"}](http://es.XYZServer:9200/_search?pretty=true%7B%22query%22:%7B%22term%22:%22SampleText%22%7D)}
> > 
> > - // this doesnt work for me..
> 
> Worth checking out:  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/search/request-body.html)
> 
> Query DSL is more what you want to use, i guess?
> 
> > _Tried few other things and worked:_
> > 
> > It's worth looking through the docs at (  
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/)) as all these commands  
> > and others are covered there.
> 
> > 1: Search for text:  
> > [http://es.XYZServer:9200/\_search?q=yoursearchword](http://es.XYZServer:9200/_search?q=yoursearchword)
> > 
> > 2: Search for mulitple keywords(with OR):  
> > [http://es.XYZServer:9200/\_search?q=Keyword1](http://es.XYZServer:9200/_search?q=Keyword1) OR Keyword2 OR Keyword3
> > 
> > 3: Search for mulitple keywords(with AND):  
> > [http://es.XYZServer:9200/\_search?q=Keyword1](http://es.XYZServer:9200/_search?q=Keyword1) AND Keyword2 AND Keyword3
> > 
> > 4: Search for a specific document where the fieldvalue=xyz :  
> > [http://es.XYZServer:9200/\_search?q=\_source.FieldName=value](http://es.XYZServer:9200/_search?q=_source.FieldName=value)
> > 
> > 5: perform step 4 with sort Enabled:  
> > [http://es.XYZServer:9200/\_search?q=\_source.FieldName=value&sort=fieldname](http://es.XYZServer:9200/_search?q=_source.FieldName=value&sort=fieldname)(by deafult its ascending)  
> > would like to know how I can change the order to desc ???
> > 
> > [http://es.XYZServer:9200/\_search?q=\_source.FieldName=value&sort=fieldname](http://es.XYZServer:9200/_search?q=_source.FieldName=value&sort=fieldname)[http://es.xyzserver:9200/\_search?q=\_source.FieldName=value&sort=fieldname](http://es.xyzserver:9200/_search?q=_source.FieldName=value&sort=fieldname)  
> > _:desc_
> 
> also can do:  
> [http://es.XYZServer:9200/\_search?q=FieldName:value&sort=fieldname](http://es.XYZServer:9200/_search?q=FieldName:value&sort=fieldname)[http://es.xyzserver:9200/\_search?q=\_source.FieldName=value&sort=fieldname](http://es.xyzserver:9200/_search?q=_source.FieldName=value&sort=fieldname)  
> _:desc_
> 
> > 6: use Size to change the default(10) results list  
> > [http://es.XYZServer:9200/\_search?size=numeric](http://es.XYZServer:9200/_search?size=numeric) value(for example size=20)
> > 
> > 7: Check the stats of the cluster:  
> > [http://es.XYZServer:9200/\_cluster/nodes/stats?pretty=true](http://es.XYZServer:9200/_cluster/nodes/stats?pretty=true)
> > 
> > Hope the above Elasticsearch REST URL Quick Reference will be useful for  
> > someone.
> > 
> > Would like to request if someone can post some more usefull uri requests  
> > that work.
> > 
> > would like to know how we can group by fieldname ?
> 
> I'm not sure what you mean by grouping - you can probably use query DSL to  
> filter/facet/query in any way you want
> 
> > would like to know how I can change the sort order to desc ???
> 
> as in example above: sort=fieldName:desc
> 
> filter results based on a datefield range ?
> 
> > 
> 
> See example in doc on github (section on searching):  
> [GitHub - elastic/elasticsearch: Free and Open, Distributed, RESTful Search Engine](https://github.com/elasticsearch/elasticsearch)
> 
> > how to delete documents if the index size is growing?
> 
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/delete.html)  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/delete-by-query.html)
> 
> > Thanks in Advance,  
> > Shannu.

--

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [October 4, 2012, 10:18pm UTC](https://discuss.elastic.co/t/request-for-list-of-elasticsearch-operations-only-thru-url/9240/4 "2012-10-04T22:18:10Z")

</div>

You also might want to check out everything in  
the org.elasticsearch.rest.action package

[https://github.com/elasticsearch/elasticsearch/tree/master/src/main/java/org/elasticsearch/rest/action](https://github.com/elasticsearch/elasticsearch/tree/master/src/main/java/org/elasticsearch/rest/action)

--  
Ivan

On Thu, Oct 4, 2012 at 8:03 AM, Derry O' Sullivan [derryos@gmail.com](mailto:derryos@gmail.com) wrote:

> Worth checking out:  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/search/request-body.html)

--

---

<div class="post-metadata">

**Author:** ![shannu](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@shannu](https://discuss.elastic.co/u/shannu)\
**Post date:** [October 5, 2012, 8:40am UTC](https://discuss.elastic.co/t/request-for-list-of-elasticsearch-operations-only-thru-url/9240/5 "2012-10-05T08:40:51Z")

</div>

Hey Ivan,

Thanks a lot 🙂

Cheers,  
Shannu.

On Thursday, October 4, 2012 11:18:21 PM UTC+1, Ivan Brusic wrote:

> You also might want to check out everything in  
> the org.elasticsearch.rest.action package
> 
> [https://github.com/elasticsearch/elasticsearch/tree/master/src/main/java/org/elasticsearch/rest/action](https://github.com/elasticsearch/elasticsearch/tree/master/src/main/java/org/elasticsearch/rest/action)
> 
> --  
> Ivan
> 
> On Thu, Oct 4, 2012 at 8:03 AM, Derry O' Sullivan \<[der...@gmail.com](mailto:der...@gmail.com)\<javascript:\>
> 
> > wrote:
> 
> > Worth checking out:  
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/search/request-body.html)

--

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 3:10am UTC](https://discuss.elastic.co/t/request-for-list-of-elasticsearch-operations-only-thru-url/9240/6 "2017-07-06T03:10:00Z")

</div>


