Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Support multiple values in suggestField setting #4197

Open
saitho opened this issue Oct 23, 2024 · 0 comments · May be fixed by #4198
Open

[FEATURE] Support multiple values in suggestField setting #4197

saitho opened this issue Oct 23, 2024 · 0 comments · May be fixed by #4198

Comments

@saitho
Copy link
Contributor

saitho commented Oct 23, 2024

Is your feature request related to a problem? Please describe.
I want to use the suggest feature but need multiple fields to be considered.
The use case is searching for a product title or product id.

Describe the solution you'd like
The setting plugin.tx_solr.search.suggest.suggestField can be used to define which field is used for suggests.
This field currently only works with a single value. I'd like to be able to set multiple comma-separated values, just like queryFields.

Example:

plugin.tx_solr {
  suggest {
    showTopResults = 1
    additionalTopResultsFields = productNumber_stringS
    suggestField = spell,productNumber_stringS
  }
  search.query {
    queryFields = title^5.0, productNumber_stringS^10.0
    filter.productOnly = type:tx_myextension_products
  }
}

Target versions
12.0.5

@saitho saitho linked a pull request Oct 23, 2024 that will close this issue
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 a pull request may close this issue.

1 participant