You could provide your own Similarity class as a plugin. Don't have any
sample code in front of me, but it would be based of TFIDFSimilarity and
you would basically needed to ignore the norms and other values.
On Mon, Jan 6, 2014 at 2:13 AM, Ivan Brusic ivan@brusic.com wrote:
You could provide your own Similarity class as a plugin. Don't have any
sample code in front of me, but it would be based of TFIDFSimilarity and
you would basically needed to ignore the norms and other values.
On Mon, Jan 6, 2014 at 2:13 AM, Ivan Brusic ivan@brusic.com wrote:
You could provide your own Similarity class as a plugin. Don't have any
sample code in front of me, but it would be based of TFIDFSimilarity and
you would basically needed to ignore the norms and other values.
I would like to score based entirely on term count.
For example, given the following two documents:
{ "apple" }
{ "apple apple" }
Searching "apple" ranks the first before the second. I wish to rank the
second, in which the term occurs twice, with a higher score.
Can someone please point me in the right direction for this?
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
--
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
I am new in Elasticsearch and I would like to score based entirely on term
count. I would like to know how you solved it.
Can you provide me your solution ?
Actually, I would like to count how many times a phrase repeats in a
document (for example the phrase- "apple apple"). Do you think it is
possible to use the term frequency for phrases counting ?.
I'm really stuck with this and need help.
Thanks you.
On Sunday, January 5, 2014 11:57:25 PM UTC+2, Kevin S wrote:
I would like to score based entirely on term count.
For example, given the following two documents:
{ "apple" }
{ "apple apple" }
Searching "apple" ranks the first before the second. I wish to rank the
second, in which the term occurs twice, with a higher score.
Can someone please point me in the right direction for this?
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.