Score based on phrase frequency only

I am new in Elasticserach.

I would like to score based entirely on phrase count (per document).

For example, given the following two documents:

  1. { "The quick brown fox" }

  2. { "The quick brown fox ..... The quick brown fox ......" }

I want to count how many times the "The quick brown fox " repeats in each

I expect that the first document will get the score 1 (or 0.1), and the
second document the score 2 (or 0.2).

Can I do it with term frequency ?.

I'm really stuck with this and need help.

Thank you

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
To view this discussion on the web visit
For more options, visit