Hi Jayesh,

Sorry, I use chrome plugin "sense" .
Do you use curl command?

You try to use the following command, if you use curl.


curl -XGET "http://localhost:9200/sample/doc_count/_search"; -d'
{
  "query": {
    "query_string": {
      "default_field": "text",
      "query": "java"
    }
  },
  "script_fields": {
    "term_count": {
      "script": "_index[\"text\"][\"java\"].tf()"
    }
  }
}'


Does it make sense?

Regards,
Jun


2014-02-05 Jayesh Bhoyar <[email protected]>:

> Hi
>
> If I run the query that you have mentioned that I get the following error:
> Added in your thread
> https://gist.github.com/johtani/8818938/
>
> Regards,
> Jayesh Bhoyar
> http://www.linkedin.com/in/jayeshbhoyar
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/7ad078ea-b2e5-450e-bc88-7a3446889a6f%40googlegroups.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
-----------------------
Jun Ohtani
blog : http://blog.johtani.info

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAPW8A5w0K7ah32Hb1VG8H0C1EqAxZVHVyXKqJeThu-eTSZp7Pg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to