# Just use TF scoring

**URL:** <https://discuss.elastic.co/t/just-use-tf-scoring/9031>\
**Category:** Elasticsearch\
**Created:** [September 15, 2012, 12:31am UTC](https://discuss.elastic.co/t/just-use-tf-scoring/9031 "2012-09-15T00:31:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sushant\_Shankar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sushant_shankar/32/2652_2.png) [@Sushant\_Shankar](https://discuss.elastic.co/u/Sushant_Shankar)\
**Post date:** [September 15, 2012, 12:31am UTC](https://discuss.elastic.co/t/just-use-tf-scoring/9031/1 "2012-09-15T00:31:05Z")

</div>

Is it possible to build an index that uses TF scoring (and not TF-IDF)?

Can this be done using a custom scoring function?

--

---

<div class="post-metadata">

**Author:** ![BillyEm](https://avatars.discourse-cdn.com/v4/letter/b/c4cdca/32.png) [@BillyEm](https://discuss.elastic.co/u/BillyEm)\
**Post date:** [September 15, 2012, 3:17am UTC](https://discuss.elastic.co/t/just-use-tf-scoring/9031/2 "2012-09-15T03:17:11Z")

</div>

yes. and yes.

On Friday, September 14, 2012 8:31:05 PM UTC-4, Sushant Shankar wrote:

> Is it possible to build an index that uses TF scoring (and not TF-IDF)?
> 
> Can this be done using a custom scoring function?

--

---

<div class="post-metadata">

**Author:** ![Sushant\_Shankar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sushant_shankar/32/2652_2.png) [@Sushant\_Shankar](https://discuss.elastic.co/u/Sushant_Shankar)\
**Post date:** [September 15, 2012, 10:25pm UTC](https://discuss.elastic.co/t/just-use-tf-scoring/9031/3 "2012-09-15T22:25:14Z")

</div>

Do you have a pointer to how I would just use TF scoring?

On Friday, September 14, 2012 8:17:11 PM UTC-7, BillyEm wrote:

> yes. and yes.
> 
> On Friday, September 14, 2012 8:31:05 PM UTC-4, Sushant Shankar wrote:
> 
> > Is it possible to build an index that uses TF scoring (and not TF-IDF)?
> > 
> > Can this be done using a custom scoring function?

--

---

<div class="post-metadata">

**Author:** ![Sushant\_Shankar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sushant_shankar/32/2652_2.png) [@Sushant\_Shankar](https://discuss.elastic.co/u/Sushant_Shankar)\
**Post date:** [September 16, 2012, 5:14am UTC](https://discuss.elastic.co/t/just-use-tf-scoring/9031/4 "2012-09-16T05:14:12Z")

</div>

I got it, thanks Billy! For my application, it looks like the custom  
scoring query is sufficient.

I found the information here for custom scoring function:

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

On Saturday, September 15, 2012 3:25:14 PM UTC-7, Sushant Shankar wrote:

> Do you have a pointer to how I would just use TF scoring?
> 
> On Friday, September 14, 2012 8:17:11 PM UTC-7, BillyEm wrote:
> 
> > yes. and yes.
> > 
> > On Friday, September 14, 2012 8:31:05 PM UTC-4, Sushant Shankar wrote:
> > 
> > > Is it possible to build an index that uses TF scoring (and not TF-IDF)?
> > > 
> > > Can this be done using a custom scoring function?

--

---

<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:12am UTC](https://discuss.elastic.co/t/just-use-tf-scoring/9031/5 "2017-07-06T03:12:39Z")

</div>


