Bug #29684
Suggest box: Too many values for UnInvertedField faceting on field spell
| Status: | On Hold | Start date: | 2011-09-12 | |
|---|---|---|---|---|
| Priority: | Could have | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | Queries | |||
| Target version: | - | |||
| TYPO3 Version: | Has patch: | |||
| PHP Version: | Tags: | |||
| Votes: | 0 |
Description
The suggest box doesn't show anymore when dealing with very large index fields.
Tomcat error log then tells us: "Too many values for UnInvertedField faceting on field spell".
The problem and solution is described in this mail: [[http://mail-archives.apache.org/mod_mbox/lucene-solr-user/200910.mbox/%3C4ACF93E4.4060602@performantsoftware.com%3E]].
The solution for tx_solr is to use the 'older' facet method "enum" as described in the mail.
Please add this parameter to the method getQueryParameters in class.tx_solr_suggestquery.php:
public function getQueryParameters() {
$suggestParameters = array(
'facet' => 'on',
'facet.prefix' => $this->prefix,
'facet.field' => $this->configuration['suggestField'],
'facet.limit' => $this->configuration['numberOfSuggestions'],
'facet.mincount' => '1',
'fq' => $this->filters,
'fl' => $this->configuration['suggestField'],
'facet.method' => 'enum'
);
Cheers,
Carsten
History
Updated by Ingo Renner over 1 year ago
- Target version deleted (
2.0)
Updated by Ingo Renner over 1 year ago
We'll have a look at it, but it's no priority for 2.0, rather 2.1 I'd say as we'd like to get the 2.0 release out soon.
Updated by Olivier Dobberkau over 1 year ago
- Status changed from New to Needs Feedback
- Target version set to next (placeholder)
Any implications with the filter for fe-groups here to be expected, ingo?
Updated by Ingo Renner over 1 year ago
- Status changed from Needs Feedback to New
- Assignee deleted (
Carsten Klee) - Priority changed from Must have to Should have
- Target version deleted (
next (placeholder))
Updated by Ingo Renner over 1 year ago
- Tracker changed from Task to Bug
Updated by Ingo Renner about 1 year ago
- Status changed from New to On Hold
- Priority changed from Should have to Could have
We would consider this if you can provide a patch to have this configurable. But otherwise by reading the documentation for the faceting methods I'm not sure enum would be good as a default for text fields like they are used for the auto suggestions.