I'm quite new in this area of elastic search, lucene etc.
So I have quite a basic question.
How do I compare multiple document and see their relevance in the different
field.
E.g. I have two documents, containing different fields: name, company,
phone etc. I want to see how "much" they compare. For example they might be
comparable 80%, because only a couple of fields differs.
How do I query such a search?
PS: I am using couchbase, but I am replicating my data to Elasticseach for
making specific search and now I want this comparison.
You might be looking for "MoreLikeThis" queries. This allows you to find
similar documents, with one specific document as the starting point.
If that's not what you meant, please give a little more detail what you are
trying to accomplish.
Marian
Am Dienstag, 9. April 2013 12:49:46 UTC+2 schrieb Steffen Larsen:
Hi,
I'm quite new in this area of Elasticsearch, lucene etc.
So I have quite a basic question.
How do I compare multiple document and see their relevance in the
different field.
E.g. I have two documents, containing different fields: name, company,
phone etc. I want to see how "much" they compare. For example they might be
comparable 80%, because only a couple of fields differs.
How do I query such a search?
PS: I am using couchbase, but I am replicating my data to Elasticseach for
making specific search and now I want this comparison.
Lucene provides an "explanation" for each document regarding how/why they
match a query:
The output can be difficult to read if your queries are elaborate. The
explain object will not compare two documents relative to each other, just
to the query. Elasticsearch also exposes an Explain API which executes a
query only on a specific document:
--
Ivan
On Tue, Apr 9, 2013 at 3:49 AM, Steffen Larsen zooldk@gmail.com wrote:
Hi,
I'm quite new in this area of Elasticsearch, lucene etc.
So I have quite a basic question.
How do I compare multiple document and see their relevance in the
different field.
E.g. I have two documents, containing different fields: name, company,
phone etc. I want to see how "much" they compare. For example they might be
comparable 80%, because only a couple of fields differs.
How do I query such a search?
PS: I am using couchbase, but I am replicating my data to Elasticseach for
making specific search and now I want this comparison.
The output can be difficult to read if your queries are elaborate. The explain object will not compare two documents relative to each other, just to the query. Elasticsearch also exposes an Explain API which executes a query only on a specific document: Elasticsearch Platform — Find real-time answers at scale | Elastic
--
Ivan
On Tue, Apr 9, 2013 at 3:49 AM, Steffen Larsen zooldk@gmail.com wrote:
Hi,
I'm quite new in this area of Elasticsearch, lucene etc.
So I have quite a basic question.
How do I compare multiple document and see their relevance in the different field.
E.g. I have two documents, containing different fields: name, company, phone etc. I want to see how "much" they compare. For example they might be comparable 80%, because only a couple of fields differs.
How do I query such a search?
PS: I am using couchbase, but I am replicating my data to Elasticseach for making specific search and now I want this comparison.
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.