SourceForge.net Logo
Main Overview Wiki Issues Forum Build Fisheye
Issue Details (XML | Word | Printable)

Key: CMP-562
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Shay Banon
Reporter: Michael Soland
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Compass

Spell Check throws exception when indexing.

Created: 29/Feb/08 08:37 PM   Updated: 01/Mar/08 02:50 AM
Component/s: Compass::Core
Affects Version/s: 2.0.0 M3
Fix Version/s: 2.0.0 M3


 Description  « Hide
CompassGps.index() is called in a separate thread and a search query is executed in the other which results in this exception from the search query:

java.lang.IllegalStateException: Spell check manager must be started to perform this operation
at org.compass.core.lucene.engine.spellcheck.DefaultLuceneSpellCheckManager.checkIfStarted(DefaultLuceneSpellCheckManager.java:569)
at org.compass.core.lucene.engine.spellcheck.DefaultLuceneSpellCheckManager.suggest(DefaultLuceneSpellCheckManager.java:421)
at org.compass.core.impl.DefaultCompassQuery.getSuggestedQuery(DefaultCompassQuery.java:142)
at org.compass.core.impl.DefaultCompassHits.getSuggestedQuery(DefaultCompassHits.java:86)
at org.compass.core.impl.DefaultCompassHits.detach(DefaultCompassHits.java:108)
at org.compass.core.support.search.CompassSearchHelper.performSearch(CompassSearchHelper.java:134)
at org.compass.core.support.search.CompassSearchHelper$1.doInCompass(CompassSearchHelper.java:82)
at org.compass.core.CompassTemplate.execute(CompassTemplate.java:132)
at org.compass.core.support.search.CompassSearchHelper.search(CompassSearchHelper.java:79)
at com.myCode

When the Spell Checker is disabled, search queries execute normally.



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Shay Banon added a comment - 01/Mar/08 02:50 AM
Removed the check for started state in the manager for the suggest operation. Recent refactoring actually don't require it.