Skip to content

Phrase matching field weights should be derived from the active provider #71

@jakewrfoster

Description

@jakewrfoster

Description

Stemming from this feedback from @renatonascalves, the field weights that are used in the Phrase Matched queries differ from those that may be set in code or otherwise by the active provider. While this may or may not present a big issue, the weights of the content should be consistent regardless of whether the phrase matching feature is enabled.

Use Case

When the phrase matching feature is enabled and a user is making a query that causes the phrase matching query to be executed, the field value factor weights should be the same as they were before the phrase matching query was activated. That is, the field weights should be derived from the active provider/configuration instead of defining its own (which can be seen here).

Acceptance Criteria

  • Rather than specifying a hardcoded list of fields and weights to search when using phrase matching, derive the fields from the existing query (utilizing what's coming through the plugin/adapter with any filters already applied).

Metadata

Metadata

Assignees

Labels

elasticsearchRequires understanding ElasticsearchenhancementNew feature or requestphpRequires understanding PHP

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions