How to implement whymatch in elastic search

Hi,

how to implement whymatch in elastic search, Is there is any procedure to
calculate the term frequency for particular word.

for example :

search query- google founder

results are :- g123,g456,g789 (these are the docId corresponding to
results )

In g123 google is in title field 3 times.

so how to calculate them.

--
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/0e2d9c72-ccbb-45cc-ab65-4899905487e3%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Hi,

you can use a script to find out term frequencies and more of a
particular word in a field. This feature is available since 0.90.10.
Check it out here:

You can use this either inside a function_score [1] query if you want
to use the tf to influence the score, or you can define a script field
[2] if you only want to have the information returned.

If you want to write a native script, some examples how to use that
from java are in this repository:

Hope that helps,
Britta

[1] Elasticsearch Platform — Find real-time answers at scale | Elastic
[2] Elasticsearch Platform — Find real-time answers at scale | Elastic

On Fri, Feb 7, 2014 at 7:24 AM, Navneet Mathpal
navneetmathpal93@gmail.com wrote:

Hi,

how to implement whymatch in Elasticsearch, Is there is any procedure to
calculate the term frequency for particular word.

for example :

search query- google founder

results are :- g123,g456,g789 (these are the docId corresponding to results
)

In g123 google is in title field 3 times.

so how to calculate them.

--
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/0e2d9c72-ccbb-45cc-ab65-4899905487e3%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
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/CALhJbBhi%3Dvjogo6UCERiLLng5pKP6z%2BsL_zjgfceaGx%3D9ZTk_A%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.