# Incremental update document with id containing special charcters using api to capture page hit count

**URL:** <https://discuss.elastic.co/t/incremental-update-document-with-id-containing-special-charcters-using-api-to-capture-page-hit-count/21439>\
**Category:** Elasticsearch\
**Created:** [December 31, 2014, 1:37pm UTC](https://discuss.elastic.co/t/incremental-update-document-with-id-containing-special-charcters-using-api-to-capture-page-hit-count/21439 "2014-12-31T13:37:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![N\_Bijalwan](https://avatars.discourse-cdn.com/v4/letter/n/8c91f0/32.png) [@N\_Bijalwan](https://discuss.elastic.co/u/N_Bijalwan)\
**Post date:** [December 31, 2014, 1:37pm UTC](https://discuss.elastic.co/t/incremental-update-document-with-id-containing-special-charcters-using-api-to-capture-page-hit-count/21439/1 "2014-12-31T13:37:36Z")

</div>

I am trying to update a document to capture page visit or hitcount which  
has id containing http:// say [http://shashankp254.wordpress.com/about/feed/](http://shashankp254.wordpress.com/about/feed/)

So with the syntax

POST [http://172.29.83.173:9200/testcount/typecount/"http://shashankp254.wordpress.com/about/feed/"/\_update](http://172.29.83.173:9200/testcount/typecount/%22http://shashankp254.wordpress.com/about/feed/%22/_update)  
-d {  
"script" : "ctx.\_source.hitcount= 1"  
}

i am getting error

No handler found for uri  
[/testcount/typecount/%22http://shashankp254.wordpress.com/about/feed/%22/\_update]  
and method [POST]

But if i have a proper id say integer  
like [http://172.29.83.173:9200/testcount/typecount/2/\_update](http://172.29.83.173:9200/testcount/typecount/2/_update)

I am getting proper response.

Please help me if there is an alternate way to partially update the  
document.

Also, during incremental update i shouldn't lose the hitcount

regards  
naveen

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/9050d686-18de-4ec0-9baf-da730f2f7e29%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9050d686-18de-4ec0-9baf-da730f2f7e29%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [December 31, 2014, 3:08pm UTC](https://discuss.elastic.co/t/incremental-update-document-with-id-containing-special-charcters-using-api-to-capture-page-hit-count/21439/2 "2014-12-31T15:08:53Z")

</div>

You must escape the id according to the rules in URI escaping (percent  
encoding), see RFC 3986 [RFC 3986 - Uniform Resource Identifier (URI): Generic Syntax](http://tools.ietf.org/html/rfc3986)

Jörg

On Wed, Dec 31, 2014 at 2:37 PM, N Bijalwan [ahcirpma@gmail.com](mailto:ahcirpma@gmail.com) wrote:

> I am trying to update a document to capture page visit or hitcount which  
> has id containing http:// say  
> [Comments on: About](http://shashankp254.wordpress.com/about/feed/)
> 
> So with the syntax
> 
> POST [http://172.29.83.173:9200/testcount/typecount/](http://172.29.83.173:9200/testcount/typecount/)"  
> [Comments on: About](http://shashankp254.wordpress.com/about/feed/)"/\_update -d {  
> "script" : "ctx.\_source.hitcount= 1"  
> }
> 
> i am getting error
> 
> No handler found for uri [/testcount/typecount/%22  
> [http://shashankp254.wordpress.com/about/feed/"/\_update](http://shashankp254.wordpress.com/about/feed/%22/_update)] and method  
> [POST]
> 
> But if i have a proper id say integer like  
> [http://172.29.83.173:9200/testcount/typecount/2/\_update](http://172.29.83.173:9200/testcount/typecount/2/_update)
> 
> I am getting proper response.
> 
> Please help me if there is an alternate way to partially update the  
> document.
> 
> Also, during incremental update i shouldn't lose the hitcount
> 
> regards  
> naveen
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/9050d686-18de-4ec0-9baf-da730f2f7e29%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9050d686-18de-4ec0-9baf-da730f2f7e29%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/9050d686-18de-4ec0-9baf-da730f2f7e29%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/9050d686-18de-4ec0-9baf-da730f2f7e29%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGN6UCCiWz33d6Yj-b6BnreZHsQ1\_7nDfAzkV5vGKzgNA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGN6UCCiWz33d6Yj-b6BnreZHsQ1_7nDfAzkV5vGKzgNA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [December 31, 2014, 3:09pm UTC](https://discuss.elastic.co/t/incremental-update-document-with-id-containing-special-charcters-using-api-to-capture-page-hit-count/21439/3 "2014-12-31T15:09:10Z")

</div>

On Wed, Dec 31, 2014 at 8:37 AM, N Bijalwan [ahcirpma@gmail.com](mailto:ahcirpma@gmail.com) wrote:

> I am trying to update a document to capture page visit or hitcount which  
> has id containing http:// say  
> [Comments on: About](http://shashankp254.wordpress.com/about/feed/)

That is probably a bad idea. Partial updates don't exist at the level of  
on disk storage and indexing. Elasticsearch's scripted updates are great  
for preventing race conditions across and stuff but the entire old document  
has to be tombstoned and a whole new one has to be indexed. So its  
probably a bad idea to implement a counter that way.

> So with the syntax
> 
> POST [http://172.29.83.173:9200/testcount/typecount/](http://172.29.83.173:9200/testcount/typecount/)"  
> [Comments on: About](http://shashankp254.wordpress.com/about/feed/)"/\_update -d {  
> "script" : "ctx.\_source.hitcount= 1"  
> }
> 
> i am getting error
> 
> No handler found for uri [/testcount/typecount/%22  
> [http://shashankp254.wordpress.com/about/feed/"/\_update](http://shashankp254.wordpress.com/about/feed/%22/_update)] and method  
> [POST]
> 
> But if i have a proper id say integer like  
> [http://172.29.83.173:9200/testcount/typecount/2/\_update](http://172.29.83.173:9200/testcount/typecount/2/_update)
> 
> I am getting proper response.
> 
> Please help me if there is an alternate way to partially update the  
> document.
> 
> Also, during incremental update i shouldn't lose the hitcount
> 
> regards  
> naveen
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/9050d686-18de-4ec0-9baf-da730f2f7e29%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9050d686-18de-4ec0-9baf-da730f2f7e29%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/9050d686-18de-4ec0-9baf-da730f2f7e29%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/9050d686-18de-4ec0-9baf-da730f2f7e29%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAPmjWd359yH8qtLUhr0ETtCQcSDfF6oQj4gzeL%2BSJeYhGR7YTw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAPmjWd359yH8qtLUhr0ETtCQcSDfF6oQj4gzeL%2BSJeYhGR7YTw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![N\_Bijalwan](https://avatars.discourse-cdn.com/v4/letter/n/8c91f0/32.png) [@N\_Bijalwan](https://discuss.elastic.co/u/N_Bijalwan)\
**Post date:** [December 31, 2014, 5:32pm UTC](https://discuss.elastic.co/t/incremental-update-document-with-id-containing-special-charcters-using-api-to-capture-page-hit-count/21439/4 "2014-12-31T17:32:49Z")

</div>

thanks Jorg, Nikolas

escaping URL is good suggestion and also the idea of implementing a counter  
in this fashion is not good. But for we are crawling pages from manifoldcf  
and want to maintain counter from other source directly in ES.

Is there a any other way of recording some attributes which are specific to  
user who hit the searched id into elasticsearch or that should be done  
outside Elasticsearch.

If this not the best way to do then we are planning to create a new index  
type where we will store counter as;

{ "\_id":"[Comments on: About](http://shashankp254.wordpress.com/about/feed/)",  
"type":"typecount",  
"hitcount:1  
}

Although, maintaining hitcount in Elasticsearch may not do anything with  
indexing but keeping it in Elasticsearch might require only one query to  
make join to fetch that.

thanks for the useful comments. It would be great if someone can share some  
relevant links along same lines.

regards  
naveen

On Wednesday, 31 December 2014 20:39:48 UTC+5:30, Nikolas Everett wrote:

> On Wed, Dec 31, 2014 at 8:37 AM, N Bijalwan \<[ahci...@gmail.com](mailto:ahci...@gmail.com)  
> \<javascript:\>\> wrote:
> 
> > I am trying to update a document to capture page visit or hitcount which  
> > has id containing http:// say  
> > [Comments on: About](http://shashankp254.wordpress.com/about/feed/)
> 
> That is probably a bad idea. Partial updates don't exist at the level of  
> on disk storage and indexing. Elasticsearch's scripted updates are great  
> for preventing race conditions across and stuff but the entire old document  
> has to be tombstoned and a whole new one has to be indexed. So its  
> probably a bad idea to implement a counter that way.
> 
> > So with the syntax
> > 
> > POST [http://172.29.83.173:9200/testcount/typecount/](http://172.29.83.173:9200/testcount/typecount/)"  
> > [Comments on: About](http://shashankp254.wordpress.com/about/feed/)"/\_update -d {  
> > "script" : "ctx.\_source.hitcount= 1"  
> > }
> > 
> > i am getting error
> > 
> > No handler found for uri [/testcount/typecount/%22  
> > [http://shashankp254.wordpress.com/about/feed/"/\_update](http://shashankp254.wordpress.com/about/feed/%22/_update)] and method  
> > [POST]
> > 
> > But if i have a proper id say integer like  
> > [http://172.29.83.173:9200/testcount/typecount/2/\_update](http://172.29.83.173:9200/testcount/typecount/2/_update)
> > 
> > I am getting proper response.
> > 
> > Please help me if there is an alternate way to partially update the  
> > document.
> > 
> > Also, during incremental update i shouldn't lose the hitcount
> > 
> > regards  
> > naveen
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/9050d686-18de-4ec0-9baf-da730f2f7e29%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9050d686-18de-4ec0-9baf-da730f2f7e29%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/9050d686-18de-4ec0-9baf-da730f2f7e29%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/9050d686-18de-4ec0-9baf-da730f2f7e29%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/a3ca00a7-9354-425f-a0fe-3fe90242b56e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a3ca00a7-9354-425f-a0fe-3fe90242b56e%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [December 31, 2014, 7:11pm UTC](https://discuss.elastic.co/t/incremental-update-document-with-id-containing-special-charcters-using-api-to-capture-page-hit-count/21439/5 "2014-12-31T19:11:25Z")

</div>

Keeping the hit counter in elasticsearch is fine so long as you don't  
update it every time the page is accessed. If you push updates daily or  
hourly or something you should be much better off. That just means you  
can't use Elasticsearch as the accumulator. I mean, it'll be fine either  
way if you have hundreds or a couple thousand hits a day. But you get the  
idea - at some point that kind of high update rate will cause trouble.

Nik

On Wed, Dec 31, 2014 at 12:32 PM, N Bijalwan [ahcirpma@gmail.com](mailto:ahcirpma@gmail.com) wrote:

> thanks Jorg, Nikolas
> 
> escaping URL is good suggestion and also the idea of implementing a  
> counter in this fashion is not good. But for we are crawling pages from  
> manifoldcf and want to maintain counter from other source directly in ES.
> 
> Is there a any other way of recording some attributes which are specific  
> to user who hit the searched id into elasticsearch or that should be done  
> outside Elasticsearch.
> 
> If this not the best way to do then we are planning to create a new index  
> type where we will store counter as;
> 
> { "\_id":"[Comments on: About](http://shashankp254.wordpress.com/about/feed/)",  
> "type":"typecount",  
> "hitcount:1  
> }
> 
> Although, maintaining hitcount in Elasticsearch may not do anything with  
> indexing but keeping it in Elasticsearch might require only one query to  
> make join to fetch that.
> 
> thanks for the useful comments. It would be great if someone can share  
> some relevant links along same lines.
> 
> regards  
> naveen
> 
> On Wednesday, 31 December 2014 20:39:48 UTC+5:30, Nikolas Everett wrote:
> 
> > On Wed, Dec 31, 2014 at 8:37 AM, N Bijalwan [ahci...@gmail.com](mailto:ahci...@gmail.com) wrote:
> > 
> > > I am trying to update a document to capture page visit or hitcount which  
> > > has id containing http:// say [http://shashankp254](http://shashankp254).  
> > > [WordPress.com News](http://wordpress.com/about/feed/)
> > 
> > That is probably a bad idea. Partial updates don't exist at the level of  
> > on disk storage and indexing. Elasticsearch's scripted updates are great  
> > for preventing race conditions across and stuff but the entire old document  
> > has to be tombstoned and a whole new one has to be indexed. So its  
> > probably a bad idea to implement a counter that way.
> > 
> > > So with the syntax
> > > 
> > > POST [http://172.29.83.173:9200/testcount/typecount/](http://172.29.83.173:9200/testcount/typecount/)"http  
> > > ://shashankp254.wordpress.com/about/feed/"/\_update -d {  
> > > "script" : "ctx.\_source.hitcount= 1"  
> > > }
> > > 
> > > i am getting error
> > > 
> > > No handler found for uri [/testcount/typecount/%22http:  
> > > [//shashankp254.wordpress.com/about/feed/"/\_update](https://shashankp254.wordpress.com/about/feed/%22/_update)] and method [POST]
> > > 
> > > But if i have a proper id say integer like [http://172.29.83.173](http://172.29.83.173):  
> > > 9200/testcount/typecount/2/\_update
> > > 
> > > I am getting proper response.
> > > 
> > > Please help me if there is an alternate way to partially update the  
> > > document.
> > > 
> > > Also, during incremental update i shouldn't lose the hitcount
> > > 
> > > regards  
> > > naveen
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > msgid/elasticsearch/9050d686-18de-4ec0-9baf-da730f2f7e29%  
> > > [40googlegroups.com](http://40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/9050d686-18de-4ec0-9baf-da730f2f7e29%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/9050d686-18de-4ec0-9baf-da730f2f7e29%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/a3ca00a7-9354-425f-a0fe-3fe90242b56e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a3ca00a7-9354-425f-a0fe-3fe90242b56e%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/a3ca00a7-9354-425f-a0fe-3fe90242b56e%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/a3ca00a7-9354-425f-a0fe-3fe90242b56e%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAPmjWd3mHiFo03kaXLVnG8Tb-m2yqm8KbC8mxn%2B4q-CCUGTevQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAPmjWd3mHiFo03kaXLVnG8Tb-m2yqm8KbC8mxn%2B4q-CCUGTevQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![N\_Bijalwan](https://avatars.discourse-cdn.com/v4/letter/n/8c91f0/32.png) [@N\_Bijalwan](https://discuss.elastic.co/u/N_Bijalwan)\
**Post date:** [January 1, 2015, 4:13am UTC](https://discuss.elastic.co/t/incremental-update-document-with-id-containing-special-charcters-using-api-to-capture-page-hit-count/21439/6 "2015-01-01T04:13:25Z")

</div>

thanks Nikolas. We will keepyour sugesstions in mind.

On Thursday, 1 January 2015 00:41:52 UTC+5:30, Nikolas Everett wrote:

> Keeping the hit counter in elasticsearch is fine so long as you don't  
> update it every time the page is accessed. If you push updates daily or  
> hourly or something you should be much better off. That just means you  
> can't use Elasticsearch as the accumulator. I mean, it'll be fine either  
> way if you have hundreds or a couple thousand hits a day. But you get the  
> idea - at some point that kind of high update rate will cause trouble.
> 
> Nik
> 
> On Wed, Dec 31, 2014 at 12:32 PM, N Bijalwan \<[ahci...@gmail.com](mailto:ahci...@gmail.com)  
> \<javascript:\>\> wrote:
> 
> > thanks Jorg, Nikolas
> > 
> > escaping URL is good suggestion and also the idea of implementing a  
> > counter in this fashion is not good. But for we are crawling pages from  
> > manifoldcf and want to maintain counter from other source directly in ES.
> > 
> > Is there a any other way of recording some attributes which are specific  
> > to user who hit the searched id into elasticsearch or that should be done  
> > outside Elasticsearch.
> > 
> > If this not the best way to do then we are planning to create a new index  
> > type where we will store counter as;
> > 
> > { "\_id":"[Comments on: About](http://shashankp254.wordpress.com/about/feed/)",  
> > "type":"typecount",  
> > "hitcount:1  
> > }
> > 
> > Although, maintaining hitcount in Elasticsearch may not do anything with  
> > indexing but keeping it in Elasticsearch might require only one query to  
> > make join to fetch that.
> > 
> > thanks for the useful comments. It would be great if someone can share  
> > some relevant links along same lines.
> > 
> > regards  
> > naveen
> > 
> > On Wednesday, 31 December 2014 20:39:48 UTC+5:30, Nikolas Everett wrote:
> > 
> > > On Wed, Dec 31, 2014 at 8:37 AM, N Bijalwan [ahci...@gmail.com](mailto:ahci...@gmail.com) wrote:
> > > 
> > > > I am trying to update a document to capture page visit or hitcount  
> > > > which has id containing http:// say [http://shashankp254](http://shashankp254).  
> > > > [WordPress.com News](http://wordpress.com/about/feed/)
> > > 
> > > That is probably a bad idea. Partial updates don't exist at the level  
> > > of on disk storage and indexing. Elasticsearch's scripted updates are  
> > > great for preventing race conditions across and stuff but the entire old  
> > > document has to be tombstoned and a whole new one has to be indexed. So  
> > > its probably a bad idea to implement a counter that way.
> > > 
> > > > So with the syntax
> > > > 
> > > > POST [http://172.29.83.173:9200/testcount/typecount/](http://172.29.83.173:9200/testcount/typecount/)"http  
> > > > ://shashankp254.wordpress.com/about/feed/"/\_update -d {  
> > > > "script" : "ctx.\_source.hitcount= 1"  
> > > > }
> > > > 
> > > > i am getting error
> > > > 
> > > > No handler found for uri [/testcount/typecount/%22http:  
> > > > [//shashankp254.wordpress.com/about/feed/"/\_update](https://shashankp254.wordpress.com/about/feed/%22/_update)] and method [POST]
> > > > 
> > > > But if i have a proper id say integer like [http://172.29.83.173](http://172.29.83.173):  
> > > > 9200/testcount/typecount/2/\_update
> > > > 
> > > > I am getting proper response.
> > > > 
> > > > Please help me if there is an alternate way to partially update the  
> > > > document.
> > > > 
> > > > Also, during incremental update i shouldn't lose the hitcount
> > > > 
> > > > regards  
> > > > naveen
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to the Google  
> > > > Groups "elasticsearch" group.  
> > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > msgid/elasticsearch/9050d686-18de-4ec0-9baf-da730f2f7e29%  
> > > > [40googlegroups.com](http://40googlegroups.com)  
> > > > [https://groups.google.com/d/msgid/elasticsearch/9050d686-18de-4ec0-9baf-da730f2f7e29%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/9050d686-18de-4ec0-9baf-da730f2f7e29%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > .  
> > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google Groups  
> > > "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send an  
> > > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/a3ca00a7-9354-425f-a0fe-3fe90242b56e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a3ca00a7-9354-425f-a0fe-3fe90242b56e%40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/a3ca00a7-9354-425f-a0fe-3fe90242b56e%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/a3ca00a7-9354-425f-a0fe-3fe90242b56e%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/95dcff45-e3fd-4ccc-bca7-f668762edbaa%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/95dcff45-e3fd-4ccc-bca7-f668762edbaa%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:41am UTC](https://discuss.elastic.co/t/incremental-update-document-with-id-containing-special-charcters-using-api-to-capture-page-hit-count/21439/7 "2017-07-06T00:41:15Z")

</div>


