# Going through elasticsearch examples, unable to "Search"

**URL:** https://discuss.elastic.co/t/going-through-elasticsearch-examples-unable-to-search/8138
**Category:** Elasticsearch
**Created:** [June 18, 2012, 6:11am UTC](https://discuss.elastic.co/t/going-through-elasticsearch-examples-unable-to-search/8138 "2012-06-18T06:11:19Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Elijah\_Windsor](https://avatars.discourse-cdn.com/v4/letter/e/59ef9b/32.png) [@Elijah\_Windsor](https://discuss.elastic.co/u/Elijah_Windsor)
#### Post date: [June 18, 2012, 6:11am UTC](https://discuss.elastic.co/t/going-through-elasticsearch-examples-unable-to-search/8138/1 "2012-06-18T06:11:19Z")

</div>

Hello -- I'm a newbie to elasticsearch, but I was able to get 0.19.4 off of  
github and compiled with mvn and running OK.

I'm able to do all of the examples from the 'home' page of elasticsearch  
(kimchy, tweet, etc.) but when I try to do a search, I get this:

java.lang.NoSuchMethodError:  
org.elasticsearch.search.internal.InternalSearchRequest.types([Ljava/lang/String;)Lorg/elasticsearch/search/internal/InternalSearchRequest;  
at  
org.elasticsearch.action.search.type.TransportSearchHelper.internalSearchRequest(TransportSearchHelper.java:55)  
at  
org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:204)  
at  
org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:191)  
at  
org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$2.run(TransportSearchTypeAction.java:177)  
at  
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)  
at  
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)  
at java.lang.Thread.run(Thread.java:680)

I am running elasticsearch by itslef with: elasticsearch -f. I'm on OS X  
Lion with Java 1.6.0\_31, and mvn 3.0.3. Thanks for your time...

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [June 18, 2012, 6:49am UTC](https://discuss.elastic.co/t/going-through-elasticsearch-examples-unable-to-search/8138/2 "2012-06-18T06:49:08Z")

</div>

You should try to download the official release instead of building it yourself.

See download page on ES site.

HTH  
David 😉  
Twitter : @dadoonet / @elasticsearchfr

Le 18 juin 2012 à 08:11, Elijah Windsor [ewindsor@gmail.com](mailto:ewindsor@gmail.com) a écrit :

> Hello -- I'm a newbie to elasticsearch, but I was able to get 0.19.4 off of github and compiled with mvn and running OK.
> 
> I'm able to do all of the examples from the 'home' page of elasticsearch (kimchy, tweet, etc.) but when I try to do a search, I get this:
> 
> java.lang.NoSuchMethodError: org.elasticsearch.search.internal.InternalSearchRequest.types([Ljava/lang/String;)Lorg/elasticsearch/search/internal/InternalSearchRequest;  
> at org.elasticsearch.action.search.type.TransportSearchHelper.internalSearchRequest(TransportSearchHelper.java:55)  
> at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:204)  
> at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:191)  
> at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$2.run(TransportSearchTypeAction.java:177)  
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)  
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)  
> at java.lang.Thread.run(Thread.java:680)
> 
> I am running elasticsearch by itslef with: elasticsearch -f. I'm on OS X Lion with Java 1.6.0\_31, and mvn 3.0.3. Thanks for your time...

---

<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:23am UTC](https://discuss.elastic.co/t/going-through-elasticsearch-examples-unable-to-search/8138/3 "2017-07-06T03:23:39Z")

</div>


