Skip to content

Translate significant_text into a terms facet sorted by relatedness() - #182

Open
serhiy-bzhezytskyy wants to merge 1 commit into
apache:mainfrom
serhiy-bzhezytskyy:significant-text-to-relatedness
Open

serhiy-bzhezytskyy wants to merge 1 commit into
apache:mainfrom
serhiy-bzhezytskyy:significant-text-to-relatedness

Conversation

@serhiy-bzhezytskyy

Copy link
Copy Markdown
Contributor

A significant_text aggregation was dropped, so the operation ran as a plain count. It now becomes a terms facet over the same field, sorted by relatedness() of the query against the whole collection.

  • size and min_doc_count are carried as limit and mincount when stated. Otherwise each engine keeps its own default: the limit is 10 in both, while OpenSearch drops terms found in fewer than 3 documents and Solr's mincount is 1, so Solr can also list rarer terms.
  • A background filter, a heuristic, duplicate filtering, sub-aggregations or a query with filters are reported in CONVERTED.md instead.

On geonames every shared term has the same document count as in OpenSearch. The score is relatedness(), not JLH, so the lists can differ in length and order.

The aggregation was dropped with only a log line, so the operation measured a plain count. Solr's nearest form is a terms facet over the same field sorted by relatedness() of the query against the whole collection: on geonames the counts of every shared term are equal and the order of the top terms nearly so, while the score is not JLH and no text is re-analysed. Settings and sub-aggregations that change the answer are reported instead of dropped.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant