Closed (fixed)
Project:
Apache Solr Search
Version:
5.x-2.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
25 Aug 2009 at 11:18 UTC
Updated:
8 Sep 2017 at 10:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
janusman commentedSimple =) Attaching patch.
Comment #2
josh waihi commentedThis isn't a feature request its a bug that needs fixing.
Comment #3
pwolanin commentedWhy would it ever suggest the same as the current query? Is there something going on in terms of solr's analysis? Perhaps this means you have a stale spellcheck index?
Comment #4
pwolanin commentedComment #5
janusman commentedHmm, well if it *can* happen, shouldn't we validate it? =) I've had it happen even on what I thought were fully-indexed sites, cron running every hour...
Also, do you know if it's normally a symptom of an indexing (or other) problem? (If so perhaps we should even log an error or show a warning to the admins somewhere..)
Comment #6
pwolanin commentedThe spellcheck index is re-built on optimize I think - so that may only happen once per day.
Comment #7
josh waihi commentedwhats wrong with fixing this in PHP if it happens?
Comment #8
robertdouglass commentedLooks like a decent improvement. We can investigate the intricacies of Solr's spelling suggestions later. Applied to DRUPAL-6--2
Comment #9
robertdouglass commentedAnd to DRUPAL-6--1.
Comment #10
claudiu.cristeaFixed in #317524.
Patch for 5.x-2.x-dev attached.