Hello, What you want to know is the score of the document that has matched itself using more like this. The API excludes the queried document. However, it is equivalent to running a boolean query of more like this field for each of the queried document field. This will give you as top result, the document that has matched itself, so that you can compute the percentage of similarity of the remaining matched documents.
Alex On Friday, May 2, 2014 3:22:34 PM UTC+2, Rgs wrote: > > Thanks Binh Ly and Ivan Brusic for your replies. > > I need to find the similarity in percentage of a document against other > documents and this will be considered for grouping the documents. > > is it possible to get the similarity percentage using more like this > query? > or is any other way to calculate the percentage of similarity from the > query > result? > > Eg: document1 is 90% similar to document2. > document1 is 45% similar to document3 > etc.. > > Thanks > > > > -- > View this message in context: > http://elasticsearch-users.115913.n3.nabble.com/Need-help-on-similarity-ranking-approach-tp4054847p4055227.html > > Sent from the ElasticSearch Users mailing list archive at Nabble.com. > -- 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/05db016b-1c2e-497c-9275-37dcccedfae3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
