# ELSER - Elastic Learned Sparse EncodeR model is unable using Trial License

**URL:** <https://discuss.elastic.co/t/elser-elastic-learned-sparse-encoder-model-is-unable-using-trial-license/334643>\
**Category:** Elasticsearch\
**Created:** [May 30, 2023, 7:18am UTC](https://discuss.elastic.co/t/elser-elastic-learned-sparse-encoder-model-is-unable-using-trial-license/334643 "2023-05-30T07:18:37Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rahul\_Agarwal1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rahul_agarwal1/32/117993_2.png) [@Rahul\_Agarwal1](https://discuss.elastic.co/u/Rahul_Agarwal1)\
**Post date:** [May 30, 2023, 7:18am UTC](https://discuss.elastic.co/t/elser-elastic-learned-sparse-encoder-model-is-unable-using-trial-license/334643/1 "2023-05-30T07:18:37Z")

</div>

I want to play with the new **ELSER model** released by Elasticsearch in new release 8.8. I tried installing Elasticsearch 8.8 in my local system and tried with the **trial license** but the model is not available under: _ **Stack Management -\> Machine Learning -\> Trained Models** _

How can I try this in my local?

 ![trained models page screenshot](https://us1.discourse-cdn.com/elastic/original/3X/7/1/71047b5a1fd1c5aa7406b7ba772f106cd5e71a66.jpeg)

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [May 30, 2023, 3:50pm UTC](https://discuss.elastic.co/t/elser-elastic-learned-sparse-encoder-model-is-unable-using-trial-license/334643/2 "2023-05-30T15:50:26Z")

</div>

Hi @Rahul_Agarwal1

Welcome to the community and thanks for checking out ELSER

You are not looking in the right place 🙂

You are in Stack Management that is not correct

See the [docs](https://www.elastic.co/guide/en/machine-learning/master/ml-nlp-elser.html)

You Need to Navigate to the Machine Learning in the Top Level Menu The Trained Models

 ![Screenshot 2023-05-30 at 8.47.58 AM](https://us1.discourse-cdn.com/elastic/original/3X/4/0/4083cf0408b753cb2f7a0fd443c086b93e4072c1.png)

 ![Screenshot 2023-05-30 at 8.49.04 AM](https://us1.discourse-cdn.com/elastic/original/3X/8/4/84ab49ae11da39d359c56ce17cfc572b24a6a398.png)

---

<div class="post-metadata">

**Author:** ![Rahul\_Agarwal1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rahul_agarwal1/32/117993_2.png) [@Rahul\_Agarwal1](https://discuss.elastic.co/u/Rahul_Agarwal1)\
**Post date:** [May 30, 2023, 4:28pm UTC](https://discuss.elastic.co/t/elser-elastic-learned-sparse-encoder-model-is-unable-using-trial-license/334643/3 "2023-05-30T16:28:13Z")

</div>

Thanks for the quick response !!

Also elasticsearch.py client library of python doesn't support the "rank" param yet(it's required to check the RRF ranking feature). When are you guys planning to add it?

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [May 30, 2023, 4:53pm UTC](https://discuss.elastic.co/t/elser-elastic-learned-sparse-encoder-model-is-unable-using-trial-license/334643/4 "2023-05-30T16:53:21Z")

</div>

We do not publish release dates in advance.  
Typically the Language Clients follow pretty quick.  
You could use a RAW HTTP request  
@dadoonet Any thoughts?

soo you can not just add it here, I see it is not in the docs, but did you try it?

`resp = es.search(index="test-index", query={"match_all": {}}, rrf={....})`

---

<div class="post-metadata">

**Author:** ![Rahul\_Agarwal1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rahul_agarwal1/32/117993_2.png) [@Rahul\_Agarwal1](https://discuss.elastic.co/u/Rahul_Agarwal1)\
**Post date:** [May 30, 2023, 8:51pm UTC](https://discuss.elastic.co/t/elser-elastic-learned-sparse-encoder-model-is-unable-using-trial-license/334643/5 "2023-05-30T20:51:40Z")

</div>

Yes I tried this. Its giving an error:  
TypeError: Elasticsearch.search() got an unexpected keyword argument 'rrf'

---

<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:** [May 31, 2023, 4:21am UTC](https://discuss.elastic.co/t/elser-elastic-learned-sparse-encoder-model-is-unable-using-trial-license/334643/6 "2023-05-31T04:21:46Z")

</div>

> [@stephenb](#):
>
> We do not publish release dates in advance.  
> Typically the Language Clients follow pretty quick.  
> You could use a RAW HTTP request  
> @dadoonet Any thoughts?

Nope but @sethmlarson might know 😉

---

<div class="post-metadata">

**Author:** ![sethmlarson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sethmlarson/32/93342_2.png) [@sethmlarson](https://discuss.elastic.co/u/sethmlarson)\
**Post date:** [May 31, 2023, 12:34pm UTC](https://discuss.elastic.co/t/elser-elastic-learned-sparse-encoder-model-is-unable-using-trial-license/334643/7 "2023-05-31T12:34:57Z")

</div>

Hello! Sorry for the inconvenience here, we're happy that everyone is excited about vector search and wants to use it through the language clients. The issue was caused by a missing annotation in our API specification [which is being fixed here](https://www.elastic.co/guide/en/elasticsearch/reference/current/rrf.html). That fix will make its way into the next release of the clients, in the case of the Python Elasticsearch client that will be v8.8.1 in a few weeks (note that the expected added parameter will be `rank={"rrf": ...}` instead of `rrf=...`)

As a workaround, you can send an HTTP request body which will complain of a deprecation warning for now but will still allow you to send the request:

```auto
from elasticsearch import Elasticsearch

client = Elasticsearch(...)

client.search(index="...", body={"rank": {"rrf": {"window_size": 100}})

```

Thanks for your interest in Elasticsearch and the Python client! :elasticheart:

---

<div class="post-metadata">

**Author:** ![Rahul\_Agarwal1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rahul_agarwal1/32/117993_2.png) [@Rahul\_Agarwal1](https://discuss.elastic.co/u/Rahul_Agarwal1)\
**Post date:** [May 31, 2023, 1:27pm UTC](https://discuss.elastic.co/t/elser-elastic-learned-sparse-encoder-model-is-unable-using-trial-license/334643/8 "2023-05-31T13:27:58Z")

</div>

Happy to know this !!  
Thanks for the prompt response guys👍🏻

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 31, 2023, 10:11pm UTC](https://discuss.elastic.co/t/elser-elastic-learned-sparse-encoder-model-is-unable-using-trial-license/334643/9 "2023-05-31T22:11:56Z")

</div>

A post was split to a new topic: [Synonyms and semantic search](https://discuss.elastic.co/t/synonyms-and-semantic-search/334880)

---

<div class="post-metadata">

**Author:** ![Rahul\_Agarwal1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rahul_agarwal1/32/117993_2.png) [@Rahul\_Agarwal1](https://discuss.elastic.co/u/Rahul_Agarwal1)\
**Post date:** [June 8, 2023, 7:21pm UTC](https://discuss.elastic.co/t/elser-elastic-learned-sparse-encoder-model-is-unable-using-trial-license/334643/10 "2023-06-08T19:21:18Z")

</div>

@sethmlarson Even the "body" param is not working.

 ![Screenshot 2023-06-09 at 12.51.04 AM](https://us1.discourse-cdn.com/elastic/original/3X/4/3/4376974b2ae5c54f80b8d13e0e32259af2ffe8d3.png)

---

<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, 2023, 7:22pm UTC](https://discuss.elastic.co/t/elser-elastic-learned-sparse-encoder-model-is-unable-using-trial-license/334643/11 "2023-07-06T19:22:15Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
