# Is there a way to use libffm(external score) to custom score?

**URL:** <https://discuss.elastic.co/t/is-there-a-way-to-use-libffm-external-score-to-custom-score/81241>\
**Category:** Elasticsearch\
**Created:** [April 5, 2017, 3:01am UTC](https://discuss.elastic.co/t/is-there-a-way-to-use-libffm-external-score-to-custom-score/81241 "2017-04-05T03:01:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![happyprg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/happyprg/32/681_2.png) [@happyprg](https://discuss.elastic.co/u/happyprg)\
**Post date:** [April 5, 2017, 3:01am UTC](https://discuss.elastic.co/t/is-there-a-way-to-use-libffm-external-score-to-custom-score/81241/1 "2017-04-05T03:01:49Z")

</div>

Hello  
I want to use libffm open source library for accurate ranking of a search query.  
How can I do that?  
Is there any good way?

One way I know, when indexing, the result score of libffm to field of every document(index) is saved in advance by Spark and sort by using it custom score or simple sort Api instead of \_score(Lucene score)  
How is it?

Please advice to me.  
Thank you in advance.

---

<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:** [April 5, 2017, 1:54pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-use-libffm-external-score-to-custom-score/81241/2 "2017-04-05T13:54:25Z")

</div>

I don't know of a way to use it, no.

---

<div class="post-metadata">

**Author:** ![happyprg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/happyprg/32/681_2.png) [@happyprg](https://discuss.elastic.co/u/happyprg)\
**Post date:** [April 6, 2017, 1:53am UTC](https://discuss.elastic.co/t/is-there-a-way-to-use-libffm-external-score-to-custom-score/81241/3 "2017-04-06T01:53:02Z")

</div>

Thank you for your reply  
One way I know, when indexing, the result score of libffm to field of every document(index) is saved in advance by Spark and sort by using it custom score or simple sort Api instead of \_score(Lucene score)  
How is it?  
Please advice to me.  
Thank you in advance.

---

<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:** [May 4, 2017, 1:53am UTC](https://discuss.elastic.co/t/is-there-a-way-to-use-libffm-external-score-to-custom-score/81241/4 "2017-05-04T01:53:09Z")

</div>

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