Hi, Can we get the corresponding code using Java API. We are using QueryBuilders.fieldQuery method for searching the test from files.
That will help. Thanks, Hiro On Tuesday, 28 January 2014 12:24:05 UTC+5:30, Hiro Gangwani wrote: > > Hi, > We are indexing PDF, Word document in ES using attachment as type. Text > based search is implemented using QueryBuilder and field query.Is it > possible to get the count of words as defined in the search criteria for > each results returned. > > For example: > Document A contain Java key word 50 times and Document B contains Java key > word 30 times. > When search criteria is "Java" and text based search is executed we get 2 > documents in search results. > Is it possible to get count of Java in document A and document B? > I have used Term facets which just given count of documents where Java > text is defined. In this case only 2. What we need is count of Java word in > each document returned in result. > > We are stuck up with this requirement and unable to find the solution for > this. Any help for this issue is appreciated and thanks in advance. > > Hiro > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/47d12008-3ba9-438e-9c3d-4b1c01a18e55%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
