The various elements of scoring are exposed in the explanation (if
enabled). Not an ideal format to process programmatically, but the results
are there.
TF-IDF is calculated per-field, with the score of the document being a
combination of the various TF-IDF of the fields involved.
Thanks for the tip! I'm not familiar with the explanation. Is that the
same as the Explain
APIhttp://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-explain.html
for computing
a score explanation for a query and a specific document? I'd really like to
get a list of all the terms that appear in a field in my index and not only
for a particular query.
Thanks,
Ben
On Wed, Oct 16, 2013 at 12:27 PM, Ivan Brusic ivan@brusic.com wrote:
The various elements of scoring are exposed in the explanation (if
enabled). Not an ideal format to process programmatically, but the results
are there.
TF-IDF is calculated per-field, with the score of the document being a
combination of the various TF-IDF of the fields involved.
Can you access the tf-idf to use outside of Elasticsearch? Also, is the
tf-idf calculated on a per-field basis or a per-document basis?
Thanks,
Ben
--
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.
Not quite the explain API, but the score explanation for any query:
When enabled, it is similar to the Explain API, but for each document
returned by the query instead of just one.
TF-IDF only matters in the context of a query. If you want all the terms,
you can use a term facet with a large size, or use Jorg's plugin:
Cheers,
Ivan
On Wed, Oct 16, 2013 at 12:38 PM, Ben McCann ben@benmccann.com wrote:
Hi Ivan,
Thanks for the tip! I'm not familiar with the explanation. Is that the
same as the Explain APIhttp://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-explain.html for computing
a score explanation for a query and a specific document? I'd really like to
get a list of all the terms that appear in a field in my index and not only
for a particular query.
Thanks,
Ben
On Wed, Oct 16, 2013 at 12:27 PM, Ivan Brusic ivan@brusic.com wrote:
The various elements of scoring are exposed in the explanation (if
enabled). Not an ideal format to process programmatically, but the results
are there.
TF-IDF is calculated per-field, with the score of the document being a
combination of the various TF-IDF of the fields involved.
Can you access the tf-idf to use outside of Elasticsearch? Also, is the
tf-idf calculated on a per-field basis or a per-document basis?
Thanks,
Ben
--
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.
Thanks Ivan! Jorg's plugin is exactly what I was looking for. I just sent
him a pull request to update to 0.90.5 and he released a new version with
it, so I'll give it a go and see how it works. Also, good point that tf-idf
might not be exactly the right term for what I was looking for. I mainly
care about the IDF portion.
Thanks again!
-Ben
P.S. you've helped me a couple times, so just wanted to say thanks! And
also I'm sure you get just as much recruiter spam as I do, so i won't bug
you, but if you ever want to explore the possibility of working on
elasticsearch with a bunch of ex-googlers then I'd love to share with you
what we're up to in case it's interesting to you
On Wed, Oct 16, 2013 at 12:57 PM, Ivan Brusic ivan@brusic.com wrote:
On Wed, Oct 16, 2013 at 12:38 PM, Ben McCann ben@benmccann.com wrote:
Hi Ivan,
Thanks for the tip! I'm not familiar with the explanation. Is that the
same as the Explain APIhttp://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-explain.html for computing
a score explanation for a query and a specific document? I'd really like to
get a list of all the terms that appear in a field in my index and not only
for a particular query.
Thanks,
Ben
On Wed, Oct 16, 2013 at 12:27 PM, Ivan Brusic ivan@brusic.com wrote:
The various elements of scoring are exposed in the explanation (if
enabled). Not an ideal format to process programmatically, but the results
are there.
TF-IDF is calculated per-field, with the score of the document being a
combination of the various TF-IDF of the fields involved.
Can you access the tf-idf to use outside of Elasticsearch? Also, is the
tf-idf calculated on a per-field basis or a per-document basis?
Thanks,
Ben
--
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.
Thank Jorg for the plugin. The code is standard in Lucene (accessing the
TermEnums), just adapted for elasticsearch.
--
Ivan
On Wed, Oct 16, 2013 at 5:30 PM, Ben McCann ben@benmccann.com wrote:
Thanks Ivan! Jorg's plugin is exactly what I was looking for. I just sent
him a pull request to update to 0.90.5 and he released a new version with
it, so I'll give it a go and see how it works. Also, good point that tf-idf
might not be exactly the right term for what I was looking for. I mainly
care about the IDF portion.
Thanks again!
-Ben
P.S. you've helped me a couple times, so just wanted to say thanks! And
also I'm sure you get just as much recruiter spam as I do, so i won't bug
you, but if you ever want to explore the possibility of working on
elasticsearch with a bunch of ex-googlers then I'd love to share with you
what we're up to in case it's interesting to you
On Wed, Oct 16, 2013 at 12:57 PM, Ivan Brusic ivan@brusic.com wrote:
On Wed, Oct 16, 2013 at 12:38 PM, Ben McCann ben@benmccann.com wrote:
Hi Ivan,
Thanks for the tip! I'm not familiar with the explanation. Is that the
same as the Explain APIhttp://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-explain.html for computing
a score explanation for a query and a specific document? I'd really like to
get a list of all the terms that appear in a field in my index and not only
for a particular query.
Thanks,
Ben
On Wed, Oct 16, 2013 at 12:27 PM, Ivan Brusic ivan@brusic.com wrote:
The various elements of scoring are exposed in the explanation (if
enabled). Not an ideal format to process programmatically, but the results
are there.
TF-IDF is calculated per-field, with the score of the document being a
combination of the various TF-IDF of the fields involved.
Can you access the tf-idf to use outside of Elasticsearch? Also, is
the tf-idf calculated on a per-field basis or a per-document basis?
Thanks,
Ben
--
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.
I love to help people getting in touch with Elasticsearch. Don't hesitate
to ask questions - there are no silly questions, only silly answers.
Thanks and kudos to Shay who is so dedicated and passionate and great by
deciding to release so valuable distributed scalable code to the public!
Jörg
Am 17.10.2013 07:23 schrieb "Ivan Brusic" ivan@brusic.com:
Thank Jorg for the plugin. The code is standard in Lucene (accessing the
TermEnums), just adapted for elasticsearch.
--
Ivan
On Wed, Oct 16, 2013 at 5:30 PM, Ben McCann ben@benmccann.com wrote:
Thanks Ivan! Jorg's plugin is exactly what I was looking for. I just
sent him a pull request to update to 0.90.5 and he released a new version
with it, so I'll give it a go and see how it works. Also, good point that
tf-idf might not be exactly the right term for what I was looking for. I
mainly care about the IDF portion.
Thanks again!
-Ben
P.S. you've helped me a couple times, so just wanted to say thanks! And
also I'm sure you get just as much recruiter spam as I do, so i won't bug
you, but if you ever want to explore the possibility of working on
elasticsearch with a bunch of ex-googlers then I'd love to share with you
what we're up to in case it's interesting to you
On Wed, Oct 16, 2013 at 12:57 PM, Ivan Brusic ivan@brusic.com wrote:
On Wed, Oct 16, 2013 at 12:38 PM, Ben McCann ben@benmccann.com wrote:
Hi Ivan,
Thanks for the tip! I'm not familiar with the explanation. Is that the
same as the Explain APIhttp://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-explain.html for computing
a score explanation for a query and a specific document? I'd really like to
get a list of all the terms that appear in a field in my index and not only
for a particular query.
Thanks,
Ben
On Wed, Oct 16, 2013 at 12:27 PM, Ivan Brusic ivan@brusic.com wrote:
The various elements of scoring are exposed in the explanation (if
enabled). Not an ideal format to process programmatically, but the results
are there.
TF-IDF is calculated per-field, with the score of the document being a
combination of the various TF-IDF of the fields involved.
Can you access the tf-idf to use outside of Elasticsearch? Also, is
the tf-idf calculated on a per-field basis or a per-document basis?
Thanks,
Ben
--
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.
I would like to get the tf-idf for an indexed field. (the field is a body
of a news document). I would like to find discriminating terms in the
document set (the document set is a result of executing a filter on the
search index.
The discriminating terms are to help with improving the query as the number
of documents returned are too many and relevant documents are getting lost
in the search result (of executing a filter).
Is it possible to run the tf-idf calculations that Elastic does while
indexing the document.(the API to access the TF-IDF calculations)
Thanks
Ramdev
On Thursday, 17 October 2013 04:12:35 UTC-5, Jörg Prante wrote:
I love to help people getting in touch with Elasticsearch. Don't hesitate
to ask questions - there are no silly questions, only silly answers.
Thanks and kudos to Shay who is so dedicated and passionate and great by
deciding to release so valuable distributed scalable code to the public!
Jörg
Am 17.10.2013 07:23 schrieb "Ivan Brusic" <iv...@brusic.com <javascript:>
:
Thank Jorg for the plugin. The code is standard in Lucene (accessing the
TermEnums), just adapted for elasticsearch.
--
Ivan
On Wed, Oct 16, 2013 at 5:30 PM, Ben McCann <b...@benmccann.com<javascript:>
wrote:
Thanks Ivan! Jorg's plugin is exactly what I was looking for. I just
sent him a pull request to update to 0.90.5 and he released a new version
with it, so I'll give it a go and see how it works. Also, good point that
tf-idf might not be exactly the right term for what I was looking for. I
mainly care about the IDF portion.
Thanks again!
-Ben
P.S. you've helped me a couple times, so just wanted to say thanks! And
also I'm sure you get just as much recruiter spam as I do, so i won't bug
you, but if you ever want to explore the possibility of working on
elasticsearch with a bunch of ex-googlers then I'd love to share with you
what we're up to in case it's interesting to you
On Wed, Oct 16, 2013 at 12:57 PM, Ivan Brusic <iv...@brusic.com<javascript:>
On Wed, Oct 16, 2013 at 12:38 PM, Ben McCann <b...@benmccann.com<javascript:>
wrote:
Hi Ivan,
Thanks for the tip! I'm not familiar with the explanation. Is that
the same as the Explain APIhttp://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-explain.html for computing
a score explanation for a query and a specific document? I'd really like to
get a list of all the terms that appear in a field in my index and not only
for a particular query.
Thanks,
Ben
On Wed, Oct 16, 2013 at 12:27 PM, Ivan Brusic <iv...@brusic.com<javascript:>
wrote:
The various elements of scoring are exposed in the explanation (if
enabled). Not an ideal format to process programmatically, but the results
are there.
TF-IDF is calculated per-field, with the score of the document being
a combination of the various TF-IDF of the fields involved.
Can you access the tf-idf to use outside of Elasticsearch? Also, is
the tf-idf calculated on a per-field basis or a per-document basis?
Thanks,
Ben
--
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 elasticsearc...@googlegroups.com <javascript:>.
--
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 elasticsearc...@googlegroups.com <javascript:>.
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 elasticsearc...@googlegroups.com <javascript:>.
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 elasticsearc...@googlegroups.com <javascript:>.
For more options, visit https://groups.google.com/groups/opt_out.
Can you provide a small example of what you are trying to achieve? Are the
discriminating terms known beforehand or is it dependent on the document?
Have you looked into the new text scoring features which have been released
since the original post? It is worth looking into:
You can probably calculate the TF values during indexing, but not the IDF
since that value is based on all of the documents in a shard.
I would like to get the tf-idf for an indexed field. (the field is a body
of a news document). I would like to find discriminating terms in the
document set (the document set is a result of executing a filter on the
search index.
The discriminating terms are to help with improving the query as the
number of documents returned are too many and relevant documents are
getting lost in the search result (of executing a filter).
Is it possible to run the tf-idf calculations that Elastic does while
indexing the document.(the API to access the TF-IDF calculations)
Ivan:
I filter the index for documents containing AAPL(the ticket symbol) (as
part of a field that is filterable).
I get back 1000 documents in no particular order as the request was just a
filter. To this filter, I would like to add a "discriminating/significant"
text that would be found in the 1000 documents. So that the documents
returned are in a sense only those that are significant.
I do not want the terms to be significant against the whole index, but only
against the documents that are returned for the query. Hence I would like
to run some extra analysis against this filter request result to identify
these "discriminating/significant" terms.
I was wondering if I can access the elastic API /underlying implementation
to do the calculations.
Ramdev
On Friday, 25 April 2014 13:09:35 UTC-5, Ivan Brusic wrote:
Can you provide a small example of what you are trying to achieve? Are the
discriminating terms known beforehand or is it dependent on the document?
Have you looked into the new text scoring features which have been released
since the original post? It is worth looking into:
You can probably calculate the TF values during indexing, but not the IDF
since that value is based on all of the documents in a shard.
Cheers,
Ivan
On Fri, Apr 25, 2014 at 8:46 AM, Ramdev Wudali <agas...@gmail.com<javascript:>
wrote:
A variant on this particular request:
I would like to get the tf-idf for an indexed field. (the field is a body
of a news document). I would like to find discriminating terms in the
document set (the document set is a result of executing a filter on the
search index.
The discriminating terms are to help with improving the query as the
number of documents returned are too many and relevant documents are
getting lost in the search result (of executing a filter).
Is it possible to run the tf-idf calculations that Elastic does while
indexing the document.(the API to access the TF-IDF calculations)
Would it be possible to create some sort of numerical value from the
discriminating/significant
text at index time in order to sort the documents by?
You can index the documents with term vectors, which will allow you to
access the term frequency values:
Not sure if those values can be used in script or even to sort by. Using
scripts, you can get access to the fields. It would be time-consuming, but
you can iterate through each term of a field and use the text scoring
features to get the appropriate values.
Ivan:
I filter the index for documents containing AAPL(the ticket symbol) (as
part of a field that is filterable).
I get back 1000 documents in no particular order as the request was just a
filter. To this filter, I would like to add a "discriminating/significant"
text that would be found in the 1000 documents. So that the documents
returned are in a sense only those that are significant.
I do not want the terms to be significant against the whole index, but
only against the documents that are returned for the query. Hence I would
like to run some extra analysis against this filter request result to
identify these "discriminating/significant" terms.
I was wondering if I can access the elastic API /underlying implementation
to do the calculations.
Ramdev
On Friday, 25 April 2014 13:09:35 UTC-5, Ivan Brusic wrote:
Can you provide a small example of what you are trying to achieve? Are
the discriminating terms known beforehand or is it dependent on the
document? Have you looked into the new text scoring features which have
been released since the original post? It is worth looking into:
You can probably calculate the TF values during indexing, but not the IDF
since that value is based on all of the documents in a shard.
Cheers,
Ivan
On Fri, Apr 25, 2014 at 8:46 AM, Ramdev Wudali agas...@gmail.com wrote:
A variant on this particular request:
I would like to get the tf-idf for an indexed field. (the field is a
body of a news document). I would like to find discriminating terms in the
document set (the document set is a result of executing a filter on the
search index.
The discriminating terms are to help with improving the query as the
number of documents returned are too many and relevant documents are
getting lost in the search result (of executing a filter).
Is it possible to run the tf-idf calculations that Elastic does while
indexing the document.(the API to access the TF-IDF calculations)
I have a requirement to retrieve the terms frequency (TF) from all recently
indexed documents (last 24 hours)
So in a query I have to supply the time range and expect to get the TFs of
all terms in the given time range
Is it possible to do in ES? If yes, please refer me to the documentation.
Thank you in advance,
Vlad
On Wednesday, October 16, 2013 9:34:37 PM UTC+3, Ben McCann wrote:
Can you access the tf-idf to use outside of Elasticsearch? Also, is the
tf-idf calculated on a per-field basis or a per-document basis?
Thanks,
Ben
--
This message may contain confidential and/or privileged information.
If you are not the addressee or authorized to receive this on behalf of the
addressee you must not use, copy, disclose or take action based on this
message or any information herein.
If you have received this message in error, please advise the sender
immediately by reply email and delete this message. Thank you.
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.