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.
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.
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.
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.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.