Hello ,

I think that is cause you missed the _search in the second query.


http://localhost:9200/one/employee/_search?q=emp_id:4318W01149

The above might work.

Thanks
           Vineeth Mohan,
           Elasticsearch consultant,
           qbox.io ( Elasticsearch service provider <http://qbox.io/>)


On Tue, Jun 2, 2015 at 12:11 AM, Ankur Wahi <wah...@gmail.com> wrote:

> Hi,
> I have an Elasticsearch node setup. When I query the index via curl
> command I get the expected output.
>
>  curl -XPOST 'http://localhost:9200/one/employee/_search?pretty=true' -d
> '{
> "query": {
> "term": {
> "emp_id":"4318W01149"
> }
> }
> }'
>
>
> but when I run similar query via browser I get the error
>
> http://localhost:9200/one/employee/?q=emp_id:4318W01149
>
>
>
>    "error":"ElasticsearchIllegalArgumentException[No feature for name
> [employee]]","status":400
>
>
> I'm on ES version 1.5.2
>
> The query below works fine
> http://localhost:9200/one/employee/_search
>
>
>
> Thanks
> Ankur
>
> --
> Please update your bookmarks! We have moved to https://discuss.elastic.co/
> ---
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/1f3b98f5-3438-4363-be25-1548cb17738d%40googlegroups.com
> <https://groups.google.com/d/msgid/elasticsearch/1f3b98f5-3438-4363-be25-1548cb17738d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Please update your bookmarks! We have moved to https://discuss.elastic.co/
--- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAGdPd5kuDT0FrVOCiC0iwSFQzDrZWxTmn-7hTEmajrz3r6M4Sw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to