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
documents.

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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/af63d977-a1ec-450e-9abe-020403661d9e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.